1. 查看limits.conf文件

cat /etc/security/limits.conf

 

2. 打开编辑limits.conf文件

sudo vim /etc/security/limits.conf

 

3. 插入以下内容

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

 

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

ulimit -a

 

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-11-22
  • 2022-01-12
猜你喜欢
  • 2021-07-25
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-03-01
相关资源
相似解决方案