当前位置:   article > 正文

Elasticsearch8.x踩坑合集_elasticsearch8坑

elasticsearch8坑

received plaintext http traffic on an https channel, closing connection

原因:是因为ES8.x默认开启了 ssl 认证。

解决: 修改config/elasticsearch.yml配置文件

xpack.security.enabled: false

修改启动内存

当你的内存不够时,启动ES顶不住而崩溃
在这里插入图片描述

为了避免惨剧发生
解决:修改confg/jvm.options配置文件

################################################################

IMPORTANT: JVM heap size

################################################################

The heap size is automatically configured by Elasticsearch

based on the available memory in your system and the roles

each node is configured to fulfill. If specifying heap is

required, it should be done through a file in jvm.options.d,

which should be named with .options suffix, and the min and

max should be set to the same value. For example, to set the

heap to 4 GB, create a new file in the jvm.options.d

directory containing these lines:

-Xms2g
-Xmx2g

See https://www.elastic.co/guide/en/elasticsearch/reference/8.2/heap-size.html

for more information

################################################################

生活就像一盒巧克力,你永远不知道下一块会是什么味道。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/457606
推荐阅读
相关标签
  

闽ICP备14008679号