ELK叢集-ElasticSearch安裝配置(五)
阿新 • • 發佈:2019-01-08
安裝
tar -zxvf elasticsearch-6.2.2.tar.gz
mv elasticsearch-6.2.2 /home/elk/elasticsearch-6.2.2-01
cp -r /home/elk/elasticsearch-6.2.2-01 /home/elk/elasticsearch-6.2.2-02
...
cp -r /home/elk/elasticsearch-6.2.2-01 /home/elk/elasticsearch-6.2.2-05
配置
cluster.name: ES-Cluster node.name: node01-master #master節點配置 node.master: true node.data: false #data節點配置 #node.master: false #node.data: true #負載均衡節點配置 #node.master: false #node.data: false bootstrap.memory_lock: true network.host: 172.30.1.199 transport.tcp.port: 9300 http.port: 9250 discovery.zen.ping.unicast.hosts: ["172.30.1.11:9300", "172.30.1.1:9301","172.30.1.1:9302","172.30.1.1:9303","172.30.1.1:9304"] #防止腦裂,最少3臺master discovery.zen.minimum_master_nodes: 2
啟動
elasticsearch無法root使用者啟動,需要切換成其他使用者
su - nic
進入bin目錄執行:
./elasticsearch
或
nohup ./elasticsearch &
目前使用了3臺作為master節點,兩臺作為data節點,3臺作為負載均衡節點