Windows环境搭建ES集群

搭建步骤

下载安装包

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

解压

解压并复制出3份

es-node1配置

config/elasticsearch.yml

yaml 复制代码
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

yaml 复制代码
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

yaml 复制代码
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

powershell 复制代码
es-node1\bin\elasticsearch
es-node2\bin\elasticsearch
es-node3\bin\elasticsearch

连接测试

连接工具

  • Google浏览器:elasticsearch-head插件
  • Microsoft Edge浏览器:es-client插件
相关推荐
唐宋元明清21886 小时前
.NET 磁盘管理-技术方案选型
windows·c#·存储
桌面运维家7 小时前
vDisk VOI/IDV Windows本地运行异常怎么办?快速排查恢复
windows
潇潇云起9 小时前
【elastic-start-local 本地docker 30天后需要重新试用处理】
elasticsearch
大厂技术总监下海12 小时前
根治LLM胡说八道!用 Elasticsearch 构建 RAG,给你一个“有据可查”的AI
大数据·elasticsearch·开源
f***281414 小时前
Springboot中使用Elasticsearch(部署+使用+讲解 最完整)
spring boot·elasticsearch·jenkins
2501_9254355216 小时前
怎么彻底禁止Windows更新?一键彻底关闭win11自动更新的工具
windows
dust_and_stars18 小时前
ubuntu24使用apt安装VS-code-server code-server
linux·服务器·windows
郑泰科技18 小时前
快速地图匹配(FMM)在轨迹可视化中的核心应用
windows·python·交通物流
梦星辰.19 小时前
超大 JSONL 数据集交互式查看器 Linux便捷工具
linux·windows·microsoft
取个名字太难了a19 小时前
插入APC
windows