打开文件
# vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 65536
* hard nproc 65536
* soft memlock unlimited
* hard memlock unlimited
# vim /etc/security/limits.d/20-nproc.conf
* soft nproc 65536
重新登陆后生效