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插件
相关推荐
John_ToDebug7 小时前
隐于无形,触手可及:Chrome 互动滚动条的六个设计密码
chrome·windows·ui
思茂信息8 小时前
CST软件如何进行参数化扫描?
运维·开发语言·javascript·windows·ecmascript·软件工程·软件需求
开发者联盟league10 小时前
在windows上安装和运行rocketmq
windows·rocketmq
Elastic 中国社区官方博客11 小时前
使用 Observability Migration Platform 将 Datadog 和 Grafana 的仪表板与告警迁移到 Kibana
大数据·elasticsearch·搜索引擎·信息可视化·全文检索·grafana·datalog
非凡ghost12 小时前
可拓浏览器:给手机浏览器装上“外挂“!2W+拓展+AI搜索,玩出无限可能!
windows·智能手机·音视频·firefox
小神.Chen12 小时前
如何删除远程桌面的连接记录,一键清理mstsc远程桌面连接的记录
windows
John_ToDebug13 小时前
WebHostView 与 TabStrip 交互机制深度解析
c++·chrome·windows
L16247613 小时前
Win11 共享→Windows Server 访问故障总结(极简可复用)
开发语言·windows·php
love530love14 小时前
ComfyUI MediaPipe 终极填坑:解决 incompatible function arguments 报错,基于代理模式的猴子补丁升级版
人工智能·windows·comfyui·mediapipe·猴子补丁·monkey patch·python 3.12
今夕资源网14 小时前
Windows Terminal更舒适的命令行环境 仅11MB 支持并行运行WSLLinux子系统 github开源项目
windows·github·命令行·cmd·terminal