一、在linux系统中,当安装如elasticsearch、solr等应用时,linux系统会提示各种因各种限制而导致安装失败,这里对遇到的一些进行介绍。

二、各种限制
1、查看系统所有限制命令
ulimit -a


2、修改打开文件数限制
现象:

***[WARN]***Your open file limit is currently 1024. It should be set to65000 to avoid operational disruption.

解决:

a)先切换到root账号(注意,若没切换,操作是不成功的);
b)以root身份修改/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)先切换到root账号(注意,若没切换,操作是不成功的);
b)以root身份修改/etc/security/limits.conf文件,在最后添加

 * hard nproc 65000
 * soft nproc 65000

 

相关文章:

  • 2021-04-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2021-12-02
猜你喜欢
  • 2021-12-17
  • 2021-06-24
  • 2021-12-22
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
相关资源
相似解决方案