ES elasticsearch-8.17.0-windows-x86_64使用

1、下载ES(elasticsearch 简称 ES 下载链接:https://www.elastic.co/downloads/elasticsearch)

ES 下载链接:https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.17.0-windows-x86_64.zip)),需要在修改ES配置,进入ES解压以后的文件下的config目录,找到elasticsearch.yml,打开后修改自己需要的配置

elasticsearch.yml配置如下,记事本打开保存时注意需要utf-8保存。

复制代码
cluster.name: linjie
node.name: lj_node_1
network.host: 0.0.0.0
http.port: 9200
transport.port: 9300
#node.master: true
#node.data: true
#discovery.zen.ping.unicast.hosts: ["0.0.0.0:9300", "0.0.0.0:9301"]
#discovery.zen.minimum_master_nodes: 1
#node.ingest: true
bootstrap.memory_lock: false
#node.max_local_storage_nodes: 2

path.data: D:\Temp\1\elasticsearch-8.17.0-windows-x86_64\data
path.logs: D:\Temp\1\elasticsearch-8.17.0-windows-x86_64\logs

http.cors.enabled: true
http.cors.allow-origin: /.*/
# Enable security features
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
  enabled: true
  keystore.path: certs/http.p12
# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12
# Create a new cluster with the current node only
# Additional nodes can still join the cluster later
cluster.initial_master_nodes: ["lj_node_1"]

2、安装时遇到的问题:

浏览器无法访问127.0.0.1:9200

127.0.0.1:9200无法访问:elasticsearch8.3安装配置(window)_elasticsearch-8.13.2 windows-CSDN博客

访问后可能提示 localhost 未发送任何数据。 ERR_EMPTY_RESPONSE

查看控制台报错:

received plaintext htp traffic on an https channel, closing connection Netty4HttpChannel

此报错原因在于是因为开启了 ssl 认证。解决

查看configelasticsearch.yml

启动后增添了一些默认配置信息,需要将xpack.security.enabled,xpack.security.enrollment.enabled 修改为false,关闭ssl认证

用户密码未知的问题

Elasticsearch8 安装完成后,用 elasticsearch-head连接,提示需要用户名密码。

Elasticsearch8默认用户名为elastic, 密码可以使用以下命令进行重置(bin目录下)cmd输入:elasticsearch-reset-password -u elastic ,再选择y,然后密码会显示出来。

如:elastic,PE2BS78Sut28xUBrLIS1

在网址里面输入:https://127.0.0.1:9200/,界面如下:

相关推荐
Yweir1 小时前
ElasticSearch 8.x 快速上手并了解核心概念
elasticsearch·搜索引擎
weixin_472339461 小时前
基于Elasticsearch的搜索引擎简介
大数据·elasticsearch·搜索引擎
Elastic 中国社区官方博客2 小时前
JavaScript 中使用 Elasticsearch 的正确方式,第一部分
大数据·开发语言·javascript·数据库·elasticsearch·搜索引擎·全文检索
小码农豪大大2 小时前
windows服务器部署jenkins工具
运维·jenkins
ThomasChan1232 小时前
Win10 安装单机版ES(elasticsearch),整合IK分词器和安装Kibana
java·大数据·elasticsearch·搜索引擎·全文检索·jenkins·es
令狐少侠20112 小时前
elasticsearch之记录es7.17升级8.17 springboot2.7.0 程序改造坑
大数据·elasticsearch·jenkins
love530love11 小时前
Windows避坑部署CosyVoice多语言大语言模型
人工智能·windows·python·语言模型·自然语言处理·pycharm
路人与大师12 小时前
从lightrag的prompt到基于openai Structured Outputs 的优化实现思路
windows·microsoft·prompt
Elastic 中国社区官方博客12 小时前
Elasticsearch 索引副本数
大数据·数据库·elasticsearch·搜索引擎·全文检索
shandianchengzi12 小时前
【记录】Windows|竖屏怎么调整分辨率使横竖双屏互动鼠标丝滑
windows·计算机外设·显示器·鼠标·分辨率·双屏