elasticsearch 集群

cd /home/xxx/
mkdir elasticsearch
cd elasticsearch
wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.1/elasticsearch-2.4.1.tar.gz
tar -zvxf elasticsearch-2.4.1.tar.gz
cd elasticsearch-2.4.1
cd config/
vi elasticsearch.yml

cluster.name: xxx
node.name: xxx-2
node.master: true
node.data: true
network.host: 0.0.0.0
discovery.zen.ping.multicast.enabled: true
discovery.zen.ping.unicast.hosts: ["192.168.0.2", "192.168.1.3"]
discovery.zen.minimum_master_nodes: 1

cd ../bin/
./elasticsearch &

curl 'localhost:9200/_cat/health?v'

./plugin install mobz/elasticsearch-head


后台启动
/home/xxx/elasticsearch/elasticsearch-2.4.1/bin/elasticsearch -d
阅读更多
个人分类: elasticsearch
想对作者说点什么? 我来说一句

elasticsearch-HQ-master.zip

2018年03月19日 7.5MB 下载

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭