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
如图:
原因是Elasticsearch在Windows下开启了安全认证,虽然started成功,但访问http://localhost:9200/
失败。
文章来源地址https://www.toymoban.com/news/detail-511853.html
文章来源:https://www.toymoban.com/news/detail-511853.html
解决方案:
找到config/目录下面的elasticsearch.yml配置文件,把安全认证开关从原先的true都改成false,实现免密登录访问即可,修改这两处都为false后:
即可解决问题,再次打开http://localhost:9200/
就正常显示内容了:
到了这里,关于Elasticsearch报错: received plaintext http traffic on an https channel, closing connection ...的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!