*****************************************************************
cluster.name: my-application
#该节点的名字
node.name: node-1
#该参数用于同时设置bind_host和publish_host
network.host: 0.0.0.0
#设置对外服务的http端口号
http.port: 9200
transport.port: 9300
discovery.seed_hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]
cluster.initial_master_nodes: ["node-1"]
#开启x-pack安全验证
#xpack.security.enabled: true
#xpack.security.authc.api_key.enabled: true
**********************************************************************
cluster.name: my-application
#该节点的名字
node.name: node-2
#该参数用于同时设置bind_host和publish_host
network.host: 0.0.0.0
#设置对外服务的http端口号
http.port: 9201
transport.port: 9301
discovery.seed_hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]
#开启x-pack安全验证
#xpack.security.enabled: true
#xpack.security.authc.api_key.enabled: true
**********************************************************************
cluster.name: my-application
#该节点的名字
node.name: node-3
#该参数用于同时设置bind_host和publish_host
network.host: 0.0.0.0
#设置对外服务的http端口号
http.port: 9202
transport.port: 9302
discovery.seed_hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"]
#开启x-pack安全验证
#xpack.security.enabled: true
#xpack.security.authc.api_key.enabled: true
网友评论