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插件
相关推荐
专注VB编程开发20年14 分钟前
C#内存加载dll和EXE是不是差不多,主要是EXE有入口点
数据库·windows·microsoft·c#
地狱为王20 分钟前
Windows下编译coturn
windows
管理大亨1 小时前
ELK + Redis Docker 企业级部署落地方案
大数据·运维·elk·elasticsearch·docker·jenkins
YCOSA20251 小时前
雨晨 Win7SP1 企业版 IE11 VCDX x64 极速 7601.28064
windows
吕了了2 小时前
给U盘一个PE to Go:将微PE系统直接释放到U盘
运维·windows·电脑·系统
总有刁民想爱朕ha2 小时前
MySQL 8 Windows日常维护教程(安装、备份、还原、重置密码等)
windows·mysql
悟空码字3 小时前
SpringBoot 整合 ElasticSearch,给搜索插上“光速翅膀”
java·后端·elasticsearch
Elasticsearch3 小时前
开始使用 Elastic Agent Builder 和 Strands Agents SDK
elasticsearch
世转神风-3 小时前
ps1脚本-运行报错-并带有乱码
windows·脚本
青w韵4 小时前
Claude 高级工具使用解析:从上下文优化到程序化调用的工程实践
数据库·windows