elasticsearch5.2 集群

来源:互联网 发布:羽毛球计分软件 编辑:程序博客网 时间:2024/06/04 18:56

第一台服务器(ip:192.168.1.111):

cluster.name:my-application

node.name:node-111

network.host:192.168.1.111

http.port:9200

http.cors.enabled:true

http.cors.allow-origin:"*"

node.master:true

node.data:true

discovery.zen.ping.unicast.hosts:["192.168.1.111","192.168.1.112"]


第二台服务器(ip:192.168.1.112)

cluster.name:my-application

node.name:node-112

network.host:192.168.1.112

http.port:9200

http.cors.enabled:true

http.cors.allow-origin:"*"

node.master:false

node.data:true

discovery.zen.ping.unicast.hosts:["192.168.1.111","192.168.1.112"]


注意事项:在部署集群时,必须清空elasticsearch中的data

原创粉丝点击