输入命令行 或者ssh登录时候报错
-bash: fork: retry: Resource temporarily unavailable
这种情况一般是process限制
修改方式是修改/etc/security/limits.d/90-nproc.conf文件中的值。
$ cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 4096
root soft nproc unlimited
$ cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 4096
我们只要修改上面文件中的4096这个值,即可。
网友评论