赞
踩
原因:是因为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
################################################################
生活就像一盒巧克力,你永远不知道下一块会是什么味道。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。