windows系统启动Elasticsearch 8.1.3无法访问
1.下载esPast Releases of Elastic Stack Software | Elastic我是下载的8.1.3这个版本2.解压,双击bin目录下的elasticsearch.bat启动es3.启动成功后,访问http://localhost:9200访问之后发现,一直不能访问,而且es打印的日志:received plaintext http traffic on an htt
1.下载es
我是下载的8.1.3这个版本
2.解压,双击bin目录下的elasticsearch.bat启动es
3.启动成功后,访问http://localhost:9200
访问之后发现,一直不能访问,而且es打印的日志:
received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:3244}
原因:ES8默认开启了 ssl 认证
解决:修改elasticsearch.yml配置文件:
xpack.security.http.ssl:enabled 设置成 false
xpack.security.enabled 设置成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
重新启动,即可成功访问:
更多推荐
所有评论(0)