单机多节点,集群问题
来来回回看来很多遍本地集群的搭建,单个节点都已经启动,并且访问192.168.7.223:9200或者8200都没问题.但是http://192.168.7.223:8200/_cat/nodes?v的话就只有一个节点,老师是哪里还有配置没有提到吗
cluster.name: myDemo
node.name: myDemo_node-1
path.data: /usr/local/elasticsearch-6.3.2/path/to/data
path.logs: /usr/local/elasticsearch-6.3.2/path/to/logs
network.host: 192.168.7.223
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*"
启动命令,bin目录下
主:./elasticsearch
第二:./elasticsearch -Ehttp.port=8200 -Epath.data=node2
第三:./elasticsearch -Ehttp.port=7200 -Epath.data=node3
http://192.168.7.223:9200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name 192.168.7.223 35 29 0 0.00 0.01 0.05 mdi * myDemo_node-1
http://192.168.7.223:8200/_cat/nodes?v
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name 192.168.7.223 18 29 0 0.00 0.01 0.05
nodes2和nodes3的目录在bin目录下面,位置/usr/local/elasticsearch-6.3.2/bin/node2