Elasticsearch启动成功访问不了,提示:[node1] received plaintext http traffic on an https channel

提问者:帅平 问题分类:搜索引擎
Elasticsearch启动后没有报错,但是访问不了9200端口,查看日志提示:
[WARN ][o.e.h.n.Netty4HttpServerTransport] [node1] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/192.168.31.218:9200, remoteAddress=/192.168.31.218:43548}

如下图:
Elasticsearch启动成功访问不了,提示:[node1] received plaintext http traffic on an https channel
1 个回答
没你的江山怎么画
没你的江山怎么画
这是因为在高版本的elasticsearch.yml中,默认开启了xpack验证,如下图:

咱们把以下两个配置修改为false后再启动就可以使用http访问9200端口了。
xpack.security.enabled: false
xpack.security.transport.ssl.enabled: false
发布于:1年前 (2023-08-28) IP属地:四川省
我来回答