您当前的位置: 首页 >  ar

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

启动ElasticSearch报错[1]: max file descriptors [4096] for elasticsearch process is too low

qq_34412985 发布时间:2020-08-04 18:27:14 ,浏览量:0

es启动时有的机器会报以下错误信息:

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

[2]: max number of threads [3818] for user [es] is too low, increase to at least [4096]

[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解决办法:

修改 etc/security/limits.conf

sudo vi /etc/security/limits.conf

在文件最后面加上

  1. * soft nofile 65536

  2. * hard nofile 65536

  3. * soft nproc 4096

  4. * hard nproc 4096

注:*后面有空格

修改 /etc/sysctl.conf

sudo vi /etc/sysctl.conf

在文件最后面加上

vm.max_map_count=262144

vm.max_map_count=262144

配置重新生效

sysctl -p

重新启动

 

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0423s