当前位置:首页 > 日记本 > 正文内容

elasticsearch 127.0.0.1:9200 连接被重置

zhangchap2年前 (2022-07-28)日记本465

之前安装过7.0的版本没有问题,现在用最新版的8.3.2的版本,启动后访问 9200端口提示连接被重置

一下是解决方案:

config目录中的elasticsearch.yml

将xpack.security.enabled: false修改为false

 xpack.security.http.ssl: enabled: false修改为false

#Enable security features
xpack.security.enabled: false
Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
  enabled: false
  keystore.path: certs/http.p12

的network.host: x.x.x.x修改为#network.host: 0.0.0.0(也可以是本机ip地址或者127.0.0.1,0.0.0.0表示谁都可以访问)

# ---------------------------------- Network -----------------------------------
#
#By default Elasticsearch is only accessible on localhost. Set a different
#address here to expose this node on the network:
#
#network.host: 0.0.0.0

保存退出并重启Elasticsearch


参考网址:https://blog.csdn.net/xyaicwj/article/details/125945002

标签: elasticsearch
分享给朋友:

相关文章

python下elasticsearch搜索接口介绍

# elasticsearch 默认算法bm25 from elasticsearch import Elasticsearch import&n...

elasticsearch安装步骤及运行

elasticsearch安装步骤及运行

下载链接:https://www.elastic.co/cn/downloads/elasticsearch虽然服务器是国外的,但是下载速度很快解压到D盘根目录,避免兼容性,不要有中文的路径打开bin...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。