集群没有设置密码。elasticsearch.yml除了节点名字不一样,其他都一样,如下:
cluster.name: els
node.name: node-1
node.master: true
node.data: true
path.data: /home/es/elasticsearch-7.10.0-node1/datas
path.logs: /home/es/elasticsearch-7.10.0-node1/logs
network.host: 192.168.1.110
discovery.seed_hosts: ["es1", "es2", "es3"]
cluster.initial_master_nodes: ["node-1","node-2","node-3"]
##是否支持跨域,默认为false
http.cors.enabled: true
##当设置允许跨域,默认为*,表示支持所有域名,
http.cors.allow-origin: "*"
cluster.name: els
node.name: node-1
node.master: true
node.data: true
path.data: /home/es/elasticsearch-7.10.0-node1/datas
path.logs: /home/es/elasticsearch-7.10.0-node1/logs
network.host: 192.168.1.110
discovery.seed_hosts: ["es1", "es2", "es3"]
cluster.initial_master_nodes: ["node-1","node-2","node-3"]
##是否支持跨域,默认为false
http.cors.enabled: true
##当设置允许跨域,默认为*,表示支持所有域名,
http.cors.allow-origin: "*"
0 个回复