Linux下安裝配置elasticsearch-2.4.6

1.下載

wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.6/elasticsearch-2.4.6.tar.gznode

tar -xzvf elasticsearch-2.4.6.tar.gzvim

cd elasticsearch-2.4.6/ elasticsearch

2.配置

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"]

3.啓動

./bin/elasticsearch -Des.insecure.allow.root=true io

後臺啓動ast

./bin/elasticsearch -Des.insecure.allow.root=true -d 集羣

中止前臺啓動的:Ctrl + C後臺

後臺啓動的:kill -9 pid

相關文章
相關標籤/搜索