irpas技术客

elasticsearch7.x安装异常 ERROR: [2] bootstrap checks failed. You must address the po

irpas 7444

ERROR:?[2]?bootstrap?checks?failed.?You?must?address?the?points?described?in?the?following?[2]?lines?before?starting?Elasticsearch. bootstrap?check?failure?[1]?of?[2]:?max?file?descriptors?[4096]?for?elasticsearch?process?is?too?low,?increase?to?at?least?[65535] bootstrap?check?failure?[2]?of?[2]:?max?virtual?memory?areas?vm.max_map_count?[65530]?is?too?low,?increase?to?at?least?[262144] ?

主要是文件权限与内存大小问题: ?

elasticsearch用户拥有的可创建文件描述的权限太低,至少需要65536,

?????????????????处理办法:???#切换到root用户修改

??????????????????????????????????vim?/etc/security/limits.conf???# 在最后面追加下面内容

???????????????????????????????????elk hard nofile?65536

??????????????????????????????????elk soft nofile?65536??????????????#***??是启动elk的用户

?max_map_count文件包含限制一个进程可以拥有的VMA(虚拟内存区域)的数量?

?????????????????处理办法:????#切换到root用户修改

??????????????????????????????????vim?/etc/sysctl.conf ???# 在最后面追加下面内容

??????????????????????????????????vm.max_map_count=655360

?????????????????????????????????执行??sysctl -p


1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,会注明原创字样,如未注明都非原创,如有侵权请联系删除!;3.作者投稿可能会经我们编辑修改或补充;4.本站不提供任何储存功能只提供收集或者投稿人的网盘链接。

标签: #error #2 #bootstrap #checks #failed #you #must