ElasticSearch6.6.0集群环境搭建
tar -zxvf elasticsearch-6.6.0.tar.gz -C /usr/local/
vim elasticsearch-6.6.0/config/elasticsearch.yml
cluster.name: es_log_cluster
node.name: es-node-1
path.data: /usr/local/elasticsearch-6.6.0/data
path.logs: /usr/local/elasticsearch-6.6.0/logs
bootstrap.memory_lock: true
network.host: 192.168.0.111
discovery.zen.ping.unicast.hosts: ["192.168.0.111:9300", "192.168.0.112:9300", "192.168.0.113:9300"]
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 2
gateway.expected_nodes: 3
gateway.recover_after_time: 5m
node.max_local_storage_nodes: 1