[root@test ~]# su webapp
su: failed to execute /bin/bash: Resource temporarily unavailable

[root@test ~]# egrep -v "^$|^#" /etc/security/limits.d/20-nproc.conf
* soft nproc 4096
root soft nproc unlimited

[root@test ~]# vim  /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@test ~]# su webapp
[webapp@test root]$

posted on 2019-03-16 22:30  苦咖啡~~  阅读(1015)  评论(1编辑  收藏  举报