我是靠谱客的博主 内向芹菜,这篇文章主要介绍elasticsearch 7.2 集群节点配置,现在分享给大家,希望可以做个参考。

conf/elasticsearch.yml对其修改,在下面添加修改:

主节点的配置

复制代码
1
2
3
4
5
6
http.cors.enabled: true http.cors.allow-origin: "*" cluster.name: cluster1 node.name: slave node.master: true network.host: 127.0.0.1

配置第二个节点

复制代码
1
2
3
4
cluster.name: cluster1 node.name: slave1 network.host: 127.0.0.1 http.port: 8200

配置第三个节点

复制代码
1
2
3
4
5
cluster.name: cluster1 node.name: slave2 network.host: 127.0.0.1 http.port: 7200 discovery.zen.ping.unicast.hosts: ["127.0.0.1"]

 

转载于:https://www.cnblogs.com/101key/p/11245319.html

最后

以上就是内向芹菜最近收集整理的关于elasticsearch 7.2 集群节点配置的全部内容,更多相关elasticsearch内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(81)

评论列表共有 0 条评论

立即
投稿
返回
顶部