搭建 elasticsearch8.8.2 伪集群 windows

下载windows 版本 elasticsearch8.8.2

以下链接为es 历史版本下载地址:

Past Releases of Elastic Stack Software | Elastic

windows 单节点建立方案:

下载安装包

elasticsearch-8.8.2-windows-x86_64.zip https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.8.2-windows-x86_64.zip

在工作目录建立single 目录,将文件解压到目录

打开elasticsearch8.8.2 /config/

修改:

elasticsearch.yml 文件

xpack.security.enabled: true

xpack.security.enrollment.enabled: true

xpack.security.http.ssl:

enabled: false

keystore.path: certs/http.p12

xpack.security.transport.ssl:

enabled: false

verification_mode: certificate

keystore.path: certs/transport.p12

truststore.path: certs/transport.p12

cluster.initial_master_nodes: "XTZJ-20220610JT"

http.host: 0.0.0.0

jvm.options 添加内存设置

-Dfile.encoding=GBK

-Xms4g

-Xmx4g

首次启动时注意:

打开到bin 的上一级目录,"shift" 右键选择 "bin"" 目录

选择"在此处打开命令窗口" 执行

执行后记住 password,登录和使用

之后ES重启服务,

访问localhost:9200

输入用户名: elastic

密码: 刚才我们记录下来的

如果密码失效,可以通过以下方式重置密码

elasticsearch-reset-password -u elastic

windows伪集群搭建方案:

同上现在文件

以下为免密码模式

下载安装包

elasticsearch-8.8.2-windows-x86_64.zip https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.8.2-windows-x86_64.zip

解压到指定cloud 目录:

如: elasticsearch-cloud

解压文件elasticsearch-node1

修改配置文件: node-1

cluster.name: es-v8.8.2

node.name: node-1

http.port: 9200

network.host: 192.168.9.133

transport.port: 9300

transport.host: 192.168.9.133

path.data: E:/es_space/8.8.2/elasticsearch-8.8.2-cloud/elasticsearch8-9200/data

path.logs: E:/es_space/8.8.2/elasticsearch-8.8.2-cloud/elasticsearch8-9200/logs

bootstrap.memory_lock: true

discovery.seed_hosts: "192.168.9.133:9300", "192.168.9.133:9301"

cluster.initial_master_nodes: "node-1", "node-"

xpack.security.enabled: false

修改

jvm.options 添加内存设置

-Dfile.encoding=GBK

-Xms4g

-Xmx4g

修改后copy 一份

改名

修改配置文件: node-2

cluster.name: es-v8.8.2

node.name: node-2

http.port: 9201

network.host: 192.168.9.133

transport.port: 9301

transport.host: 192.168.9.133

path.data: E:/es_space/8.8.2/elasticsearch-8.8.2-cloud/elasticsearch8-9201/data

path.logs: E:/es_space/8.8.2/elasticsearch-8.8.2-cloud/elasticsearch8-9201/logs

bootstrap.memory_lock: true

discovery.seed_hosts: "192.168.9.133:9300", "192.168.9.133:9301"

cluster.initial_master_nodes: "node-1", "node-2"

xpack.security.enabled: false

打开我们的bin 执行 elasticsearch.bat

集群搭建方案:

伪集群中ip替换即可

认证添加:

第一步处理密码之后,copy 成位副本之后可以使用通用秘钥

相关推荐
qq_3692243310 天前
Windows全系通用!ntdll.dll文件丢失、报错、闪退问题的完整排查与修复教程
windows·dll·dll修复·dll丢失·dll错误
阿米亚波10 天前
【Windows】QEMU 启动 openEuler aarch64/arm64 架构系统 + 离线软件源
linux·windows·经验分享·笔记·架构·arm
caimouse10 天前
Reactos 第 10 章 网络操作 — 10.3.1 NIC驱动
网络·windows
初圣魔门首席弟子10 天前
Node.js 详细介绍(知识库版)
windows·qt·node.js·知识库
CHENG-JustDoIt10 天前
AI工具 | 爆火开源项目Odysseus AI 工作台:从项目介绍、部署情况及其使用等多方位分析指南(含详细步骤)
大数据·人工智能·windows·python·ai·开源·github
kingbal10 天前
Windows:flutter环境搭建
windows·flutter
未若君雅裁10 天前
Python 数据容器详解,list、tuple、str、set、dict 到底怎么选
windows·python·list
CodeKwang10 天前
Windows 环境 OCCT 8.0 编译构建及与 Qt6 项目集成
windows·qt·opencascade
我是伪码农10 天前
小兔鲜1-25
linux·服务器·windows
vx-Biye_Design10 天前
springboot安阳地区研学旅游服务小程序-计算机毕业设计源码12785
java·vue.js·windows·spring boot·tomcat·maven·mybatis