当前位置: 首页 > article >正文

Windows环境搭建ES集群

搭建步骤

下载安装包

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

解压

解压并复制出3份

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-node1\bin\elasticsearch
es-node2\bin\elasticsearch
es-node3\bin\elasticsearch

连接测试

连接工具

  • Google浏览器:elasticsearch-head插件
  • Microsoft Edge浏览器:es-client插件


http://www.kler.cn/a/550235.html

相关文章:

  • # 10分钟了解DeepSeek,保姆级部署DeepSeek到WPS,实现AI赋能
  • 【Spring Cloud Alibaba】Sentinel 服务熔断与流量控制
  • Ubuntu 系统 cuda12.2 安装 MMDetection3D
  • 机器学习·决策树
  • 菜鸟之路Day15一一IO流(一)
  • 正则表达式(Regular expresssion)
  • watermark解释
  • 网络安全试题
  • MATLAB算法实战应用案例精讲-【数模应用】空间插值(附MATLAB、R语言和python代码实现)
  • 解锁机器学习核心算法 | K -近邻算法:机器学习的神奇钥匙
  • 机器学习入门实战 5 - 特征工程
  • Lua 数据库访问
  • Spring Boot Actuator 监控✨
  • 让爱双向奔赴:伊纳宝X宠之谷践行流浪动物关爱公益
  • PHP 文件与目录操作
  • 【MySQL】数据库基础库/表的操作数据类型详解
  • HepG2细胞复苏实验以及六孔板种植细胞实验
  • 汉诺塔问题详解:递归与分治的经典案例
  • sql数据执行失败,三个命令依次执行
  • CES Asia 2025“科技+文旅”融合计划:开启文旅新篇