关于企业网站建设的必要性,天津低价网站建设,seo关键词排名工具,东莞万江网站建设公司大家好#xff0c;我是烤鸭#xff1a;关于集群内单个节点部署#xff0c;请参考上一篇文章。elasticsearch 6.x linux部署(二) kibana x-pack 安装环境#xff1a;linux Cent OS 7.3elasticsearch-6.2.41. 下载多个es安装每个安装步骤都是一样的。2. 修改配置文件(重…大家好我是烤鸭关于集群内单个节点部署请参考上一篇文章。elasticsearch 6.x linux部署(二) kibana x-pack 安装环境linux Cent OS 7.3elasticsearch-6.2.41. 下载多个es安装每个安装步骤都是一样的。2. 修改配置文件(重要)一共启动了3个es。我的选择是其中一个作为主节点并且不存储数据。2.1 主节点elasticsearch.yml:
#
cluster.name: test-master
node.name: test-node1
# 设置充当master节点默认为true
#
node.master: true
#
# 设置不充当data节点默认为true
#
node.data: false
network.host: 192.168.1.1(内网ip)
network.bind_host: 192.168.1.1(内网ip)http.port: 9393 #对外访问
transport.tcp.port: 9303 #各节点通信# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is [127.0.0.1, [::1]]
#
discovery.zen.ping.unicast.hosts: [192.168.1.1:9303,192.168.1.1:9304,192.168.1.1:9305] #分别为各节点通信端口2.2 副节点之一elasticsearch.yml:
#
cluster.name: test-master
node.name: test-node2
# 设置充当master节点默认为true
#
node.master: false
#
# 设置不充当data节点默认为true
#
node.data: true
network.host: 192.168.1.1(内网ip)
network.bind_host: 192.168.1.1(内网ip)http.port: 9394 #对外访问
transport.tcp.port: 9304 #各节点通信# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is [127.0.0.1, [::1]]
#
discovery.zen.ping.unicast.hosts: [192.168.1.1:9303,192.168.1.1:9304,192.168.1.1:9305] #分别为各节点通信端口2.2 副节点之二elasticsearch.yml:
#
cluster.name: test-master
node.name: test-node3
# 设置充当master节点默认为true
#
node.master: false
#
# 设置不充当data节点默认为true
#
node.data: true
network.host: 192.168.1.1(内网ip)
network.bind_host: 192.168.1.1(内网ip)http.port: 9395 #对外访问
transport.tcp.port: 9305 #各节点通信# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is [127.0.0.1, [::1]]
#
discovery.zen.ping.unicast.hosts: [192.168.1.1:9303,192.168.1.1:9304,192.168.1.1:9305] #分别为各节点通信端口
3. kibana和x-pack安装x-pack是需要各自独立安装的。kinaba只需要安装一次配置到主节点ip。3.1 kibana.yml
server.port: 9399 #启动端口server.host: 192.168.1.1 #内网ipelasticsearch.url: http://192.168.1.1:9303 #es主节点地址elasticsearch.username: elastic #es用户名
elasticsearch.password: changeme #es密码logging.dest: /opt/elasticsearch/kibana/logs/kibana.log #日志目录4. 启动后访问各节点如图4.1 启动4.2 其中主节点截图其他的跟这个一样就不截图了。4.3 启动kibana
[esiZ8vbb4x47pk27lsr4i47rZ kibana]$ bin/kibana 5. 访问kibana如图5.1 概况可以看出来是3个节点版本号license过期时间硬盘使用,JVM内存情况等。5.2 license过期过期时间是一个月以后。快要过期的话就再去注册x-pack每次注册可以使用一年。注册网址 https://register.elastic.co/xpack_register5.3 各节点如图更多关于elasticsearch 6.x内容1. elasticsearch 6.x 部署 windows入门(一) spingboot连接2. elasticsearch 6.x linux部署(二) kibana x-pack 安装