elasticsearch 127.0.0.1:9200 连接被重置
之前安装过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