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

1.报错截图

image-20230819101310478

2.访问页面

http://localhost:9200/

出现如下

image-20230819101410265

3.原因

ElasticSearch默认开启了安全认证,需要将安全认证关掉

4.解决方法

修改 config/elasticsearch.yml

image-20230819102530736

5.重启

访问:http://localhost:9200/

image-20230819102909246