linux 启动solr服务提示Your open file limit is currently 1024

一、在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

 

posted @ 2021-11-24 18:57  天秤水  阅读(470)  评论(0编辑  收藏  举报