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插件
相关推荐
Vodka~16 分钟前
深度学习——数据处理脚本(基于detectron2框架)
人工智能·windows·深度学习
极小狐1 小时前
极狐GitLab 功能标志详解
linux·运维·服务器·elasticsearch·gitlab·极狐gitlab
bulucc3 小时前
回归,git 分支开发操作命令
大数据·git·elasticsearch
MobiCetus4 小时前
Linux Kernel 9
java·linux·运维·服务器·windows·ubuntu·gnu
极小狐5 小时前
极狐GitLab 安全文件管理功能介绍
linux·运维·数据库·安全·elasticsearch·gitlab
Java程序之猿7 小时前
Spring Boot 集成spring-boot-starter-data-elasticsearch
spring boot·elasticsearch·jenkins
Elasticsearch7 小时前
如何增加 Elasticsearch 中的 primary shard 数量
elasticsearch
阿里云大数据AI技术7 小时前
阿里云 Elasticsearch Serverless 检索增强型 8.17 版来袭!
大数据·elasticsearch·serverless
星释10 小时前
GitLab-CI集成FTP自动发布
elasticsearch·ci/cd·gitlab
图南随笔13 小时前
Spring Boot(二十二):RedisTemplate的List类型操作
windows·spring boot·list