Elasticsearch遇到的错误解决

Elasticsearch遇到的错误解决,第1张

Elasticsearch遇到的错误解决 Elasticsearch遇到的错误解决

启动./elasticsearch后报错:
1.bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

找到/etc/security文件夹下的limits.conf文件,通过vi或者vim进行编辑,添加以下信息:
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096


2.max number of threads [2048] for user [tongtech] is too low, increase to at least [4096]

找到**/etc/security/limits.d**的文件夹下中的文件进行编辑,我这里是20-nproc.conf,编辑将里面的数改为4096,如下:
然后保存退出,1,2点改好后,重新登录之后生效。

3.max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
找到/etc文件夹下的sysctl.conf文件进行编辑,添加以下信息或者修改信息:vm.max_map_count=655360
然后保存退出,进行sysctl -p进行确认,成功如下:

--------------------------------------From Clam Person Understanding ------------------------------------------------
--------------------------------------only Reference For You -------------------------------------------------------------
--------------------------------------Also Hope To Get Your Advice ------------------------------------------------------

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5688458.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存