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插件
相关推荐
Elasticsearch6 小时前
Elastic 被评为 2026 年 Gartner®《企业 AI 搜索魔力象限™》领导者
elasticsearch
ly76899 小时前
Elasticsearch 分片分配与再平衡的底层逻辑:从 allocation decider 到集群扩容抖动
大数据·elasticsearch·搜索引擎·集群扩容·分片分配·磁盘水位线
Nebula_g11 小时前
JavaSE加强:Stream流
java·开发语言·windows·stream·javase·流
Elasticsearch14 小时前
使用 Lucene 搜索你的 beans —— Facets
elasticsearch
溪语流沙14 小时前
【Web全栈进阶】Alembic数据库迁移:改表结构不再删库
前端·数据库·python·elasticsearch·postgresql
在角落发呆14 小时前
软件配置备份方法:从手动到自动化的实践指南
windows·安全
lingchen190615 小时前
Win 11 系统语言栏悬浮于桌面上影响操作感受,怎么取消?
windows
梅孔立15 小时前
Windows PowerShell 升级 Pi-Coding-Agent + OpenCode,解决 OpenCode 二进制无效报错
windows
东木月18 小时前
Windows C 盘清理指南:安全删除临时文件、缓存与 Prefetch
c语言·windows·安全
ly768918 小时前
Elasticsearch 写入链路的 refresh、flush 与 translog 边界:为什么 bulk 吞吐会突然塌陷
大数据·elasticsearch·搜索引擎·translog·写入链路·bulk调优