Elasticsearch踩坑:received plaintext http traffic on an https channel, closing connection Netty4HttpCh

踩坑:

当我们访问ip+9200 验证是否启动成功时报错

received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.16.5.10:9200,
remoteAddress=/172.16.11.68:11111}

如图:
在这里插入图片描述
原因:Elasticsearch开启了安全认证
解决:在config/目录下面的elasticsearch.yml配置文件,把安全认证开关从原先的true改成false,实现免密登录访问即可,修改如图:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/csdn570566705/article/details/131190970