root账号可以通过修改 /etc/security/limits.conf 生效。
但是普通用户除了修改上面外,还需要修改 /etc/security/limits.d/20-nproc.conf 文件生效。