linux修改max user processes limits

突破ulimit 限制

  • 修改普通用户单个用户可同时运行的最大进程数 (默认为 4096 )
[root@xxx devops]# cat /etc/security/limits.d/20-nproc.conf 
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

*          soft    nproc     65535
root       soft    nproc     unlimited

  • 修改文件句柄数
 [root@xxx devops]#cat /etc/security/limits.conf
root soft nofile 655350
root hard nofile 655350
* soft nofile 655350
* hard nofile 655350
posted @ 2024-01-20 12:02  lixinliang  阅读(655)  评论(0编辑  收藏  举报