Elasticsearch报错: received plaintext http traffic on an https channel, closing connection ...
报错:received plaintext http traffic on an https channel, closing connection Netty4HttpChannel。原因是Elasticsearch在Windows下开启了安全认证,虽然started成功,但访问http://localhost:9200/现象,当启动Elasticsearch后,在浏览器输入地址 http://
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/
失败。
解决方案:
找到config/目录下面的elasticsearch.yml配置文件,把安全认证开关从原先的true都改成false,实现免密登录访问即可,修改这两处都为false后:

即可解决问题,再次打开http://localhost:9200/
就正常显示内容了:

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)