Elasticsearch 8.0报错:received plaintext http traffic on an https channel, closing connection

ES配置启动成功了,就是客户端访问服务端出现这个错误

Elasticsearch 8.0报错:received plaintext http traffic on an https channel, closing connection_第1张图片

原因:是因为ES8默认开启了 SSL 认证。

因为 SSL 需要使用https方式请求,所以有以下两种解决办法:

1、使用 https 发送请求,即:把 http 请求改成 https 即可。

2、修改配置文件,需要修改配置文件则继续往下看。

修改elasticsearch.yml配置文件

xpack.security.enabled设置为false

xpack.security.enabled: false

Elasticsearch 8.0报错:received plaintext http traffic on an https channel, closing connection_第2张图片

修改完毕,重启,解决问题!!!

Elasticsearch 8.0报错:received plaintext http traffic on an https channel, closing connection_第3张图片

你可能感兴趣的:(问题解决方案,Elasticsearch,http,elasticsearch,https)