当前位置:   article > 正文

Elasticsearch报错: received plaintext http traffic on an https channel, closing connection ..._closing connection netty4httpchannel

closing connection netty4httpchannel

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

现象,当启动Elasticsearch后,在浏览器输入地址 http://localhost:9200/

后,报错

received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200

如图:

be0505be77b24cda9e1ca6a9fb96b006.png

原因是Elasticsearch在Windows下开启了安全认证,虽然started成功,但访问http://localhost:9200/

失败。

 

 

解决方案:

找到config/目录下面的elasticsearch.yml配置文件,把安全认证开关从原先的true都改成false,实现免密登录访问即可,修改这两处都为false后:

24d103ffee3d4b0c9d39327d01426c7f.png

 

即可解决问题,再次打开http://localhost:9200/

就正常显示内容了:

4359b8add1104ee3920e1255e6bc6ebd.png

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/457602
推荐阅读
相关标签
  

闽ICP备14008679号