永久生效办法:
centos6.x
(1)、cd /etc/security/
vi limits.d/90-nproc.conf
添加:
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
(2)vi /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
centos5.x
vi /etc/security/limits.conf
添加:
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535