一、集群部署
(1)config的elasticsearch.yml
cluster.name: my-app
node.name: node-1
path.data: /home/work/env/es/es-data/es7-data
path.logs: /home/work/env/es/log/es7-log
bootstrap.memory_lock: false
network.host: 0.0.0.0
http.port: 8200
transport.tcp.port: 8250
transport.tcp.compress: true
discovery.seed_hosts: ["10.**.***.**", "10.**.***.**","10.**.***.**"]
cluster.initial_master_nodes: ["node-1", "node-2","node-3"]
#action.destructive_requires_name: true
1.重要的是transport.tcp.port,保持一致
2.cluster.initial_master_nodes:非必填
3.