es集群搭建

每一个服务都将下面配置参数写入/home/sczbbx/es-1/elasticsearch-6.3.2/config文件下面的elasticsearch.yml配置最后,然后根据配置的文件路径创建文件夹,最后启动就行了

cluster.name: my-application
node.name: node-192-168-0-125
path.data: /home/sczbbx/es-1/data
path.logs: /home/sczbbx/es-1/logs
network.host: 192.168.0.125
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.0.125:9300","192.168.0.126:9300","192.168.0.127:9300"]
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 3
node.master: true
node.data: true
node.ingest: false
search.remote.connect: false
原文地址:https://www.cnblogs.com/lk617-home/p/9635290.html