#允许所有访问
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: "*"
刚刚启动是时候是绿色的,用head 查看三个节点都能看到; 一添加数据就变红了,一个分区都不可用,添加数据也超时了?