一、简介
在linux系统中,当安装如elasticsearch、solr等应用时,linux系统会提示各种因各种限制
而导致安装失败,这里对遇到的一些进行介绍。
二、各种限制
1、查看系统所有限制
命令: ulimit -a
2、修改打开文件数限制,
问题描述:
*** [WARN] *** Your open file limit is currently 1024.
It should be set to 65000 to avoid operational disruption.
解决办法:
a)修改/etc/security/limits.conf文件,在最后添加
* hard nofile 65000 * soft nofile 65000
3、修改打开进程限制
问题描述:
*** [WARN] *** Your Max Processes Limit is currently 2048.
It should be set to 65000 to avoid operational disruption.
解决办法:
a)修改/etc/security/limits.conf文件,在最后添加
* hard nproc 65000 * soft nproc 65000
4、重启系统,否则修改的参数不生效