一、工具与环境
1.安装包:elasticsearch-6.0.0.tar.gz
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0.tar.gz
2.环境:CentOS 7
二、配置ElasticSearch集群
1.解压elasticsearch-6.0.0.tar.gz
$ tar -zxvf elasticsearch-6.0.0.tar.gz
2.修改配置文件
$ vi elasticsearch-6.0.0/config/elasticsearch.yml
cluster.name: cluster_name
transport.tcp.port: 9300
http.cors.enabled: true
http.cors.allow-origin: "*"
node.name: node1
network.host: 192.168.222.133
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.222.133:9300","192.168.222.133:9301","192.168.222.133:9302"]
discovery.zen.minimum_master_nodes: 1<