tar -xzvf elasticsearch-2.4.6.tar.gzvim
cd elasticsearch-2.4.6/ elasticsearch
cd elasticsearch-2.4.6/ code
vim ./config/elasticsearch.ymlip
cluster.name: yuantues node.name: master network.host: 192.168.100.35 http.port: 8200 discovery.zen.ping.unicast.hosts: ["192.168.100.35"]
配置解釋get
#集羣名稱 cluster.name: yuantues # 單節點名稱 node.name: master #設置綁定的ip地址 network.host: 192.168.100.35 #端口 http.port: 8200 # 找到master節點 discovery.zen.ping.unicast.hosts: ["192.168.100.35"]
./bin/elasticsearch -Des.insecure.allow.root=true io
後臺啓動ast
./bin/elasticsearch -Des.insecure.allow.root=true -d 集羣
中止前臺啓動的:Ctrl + C後臺
後臺啓動的:kill -9 pid