允许所有访问
network.host: 0.0.0.0
http.port: 19291
cluster.name: elasticsearch-cluster ? #集群名称,保证唯一
node.name: node1 ? #节点名称,必须不一样
node.master: true?
node.data: true
transport.tcp.port: 19391 ? #集群间通信端口号,在同一机器下必须不一样
transport.tcp.compress: true
设置集群自动发现机器ip集合
discovery.zen.ping.unicast.hosts: ["127.0.0.1:19391", "127.0.0.1:19392", "127.0.0.1:19393"]
跨域
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: "*"
http.cors.allow-methods: "*"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…