Windows环境部署ES集群

搭建步骤

下载安装包

下载链接:https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.27-windows-x86_64.zip

解压

解压并复制出3份

Windows环境部署ES集群

es-node1配置

config/elasticsearch.yml

cluster.name: xixi-es-win
node.name: node-1
path.data: D:\work\environment\es-cluster-7.17\es-node1\data
path.logs: D:\work\environment\es-cluster-7.17\es-node1\logs
network.host: 0.0.0.0
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", "node-2","node-3"]

es-node2配置

config/elasticsearch.yml

cluster.name: xixi-es-win
node.name: node-2
path.data: D:\work\environment\es-cluster-7.17\es-node2\data
path.logs: D:\work\environment\es-cluster-7.17\es-node2\logs
network.host: 0.0.0.0
http.port: 9201
transport.port: 9301
discovery.seed_hosts: ["127.0.0.1:9300", "127.0.0.1:9301","127.0.0.1:9302"]
cluster.initial_master_nodes: ["node-1", "node-2","node-3"]

es-node3配置

config/elasticsearch.yml

cluster.name: xixi-es-win
node.name: node-3
path.data: D:\work\environment\es-cluster-7.17\es-node2\data
path.logs: D:\work\environment\es-cluster-7.17\es-node2\logs
network.host: 0.0.0.0
http.port: 9202
transport.port: 9302
discovery.seed_hosts: ["127.0.0.1:9300", "127.0.0.1:9301","127.0.0.1:9302"]
cluster.initial_master_nodes: ["node-1", "node-2","node-3"]

启动三个ES

es-node1binelasticsearch
es-node2binelasticsearch
es-node3binelasticsearch

连接测试

Windows环境部署ES集群

连接工具

  • Google浏览器:elasticsearch-head插件
  • Microsoft Edge浏览器:es-client插件
Windows环境部署ES集群

原文始发于微信公众号(溪溪技术笔记):Windows环境部署ES集群

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/316758.html

(0)
小半的头像小半

相关推荐

发表回复

登录后才能评论
极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!