1.修改 /etc/security/limits.conf 文件
修改为:
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
2.查看/etc/security/limits.d目录是否有文件“20-nproc.conf”,没有的话新建该文件,文件
内容写为:
* soft nproc 65535
* hard nproc 65535
退出重新查看: