步骤解读:
/etc/security/limits.d/90-nproc.conf
与 /etc/security/limits.conf
都是系统用户资源配置文件
/etc/security/limits.d/90-nproc.conf
配置文件:
[root@ ~]# 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 1024
root soft nproc unlimited
系统其它普通用户最多进程默认是1024个,而root用户是 unlimited(不受限制)
/etc/security/limits.conf
配置文件可限制文