您当前的位置: 首页 >  ar

小志的博客

暂无认证

  • 1浏览

    0关注

    1217博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

CentOS7上elasticsearch5.5启动报错 ERROR: [2] bootstrap checks failed

小志的博客 发布时间:2019-04-25 11:09:23 ,浏览量:1

一、报错如下:

ERROR: [2] bootstrap checks failed [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

二、解决步骤如下:

1、问题1 [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]的解决方式:

(请切换到root用户 然后强制修改文件)修改/etc/security/limits.conf文件,添加或修改如下行:

 *        hard    nofile           65536

 *        soft    nofile           65536

2、问题2 [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]的解决方式:

第一种方式:

 切换到root用户, 执行$ sudo sysctl -w vm.max_map_count=2621441命令
第二种方式:
 #切换到root用户,
 su root
 #编辑 /etc/sysctl.conf 
 vi  /etc/sysctl.conf 
 #添加如下参数
 vm.max_map_count=2621441
 执行 sudo sysctl -p /etc/sysctl.conf 命令,设置 永久改变
关注
打赏
1661269038
查看更多评论
立即登录/注册

微信扫码登录

0.0391s