Loading

ElasticSearch 启动的一个坑

最近安装了elasticsearch完成后,启动elasticsearch的几个问题:

1. received plaintext http traffic on an https channel, closing connection Netty4HttpChannel

[2022-06-28T21:08:50,085][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [DESKTOP-VCT39JM] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:1172}

解决

是因为开启了 ssl 认证。

在 es/config/elasticsearch.yml 文件中把 xpack.security.http.ssl:enabled 设置成 false 即可

# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
  enabled: false
  keystore.path: certs/http.p12

设置内存大小

es 的内存是自己调节的,在 config/jvm.options 文件中直接设置就好了(追加):

-Xms512m
-Xmx2048m
posted @ 2022-08-27 16:29  Carvers  阅读(1028)  评论(1)    收藏  举报