Elasticsearch 8.2.1 取消了tcp协议
启动elasticsearch后,找不到tcp端口还以为是环境问题,
试着 访问提示日志:
[2022-05-27T14:52:05,311][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [localhost.localdomain] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/192.168.153.23:9200, remoteAddress=/192.168.153.1:53496}
才知道 elasticsearch8.x之后取消了tcp协议
默认开始了ssl验证,导致无法访问9200
vim /usr/local/elasticsearch/config/elasticsearch.yml # xpack.security.enabled ture改为false xpack.security.enabled: false