搭建 ElasticSearch 6.1.3分布式集群
mac上的本机ip为192.168.1.111,设为master节点,配置如下:
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"]
相关文章