Centos 不重启 修改ulimit参数

乾坤 2021-12-5

 

1

1. 查看limits.conf文件

cat /etc/security/limits.conf

 

22. 打开编辑limits.conf文件

sudo vim /etc/security/limits.conf

 

3
0
3. 插入以下内容

* hard nofile 999999
* soft nofile 999999
* soft nproc 10240
* hard nproc 10240
* hard stack 102400
* soft stack 102400

 

4
0
4. 查看确认是否修改成功 

ulimit -a

 

此时, 不出意外的话, 你的系统就在没重启的情况下, 已经修改了


Comments | 0 条评论