有如下两种种修改方式:
1. 在/etc/profile 中增加一行 ulimit -SHn 65535
2. 在/etc/security/limits.conf 最后增加:
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
在 Debian 中使用第1 种方式,在 CentOS中使用第2种
有如下两种种修改方式:
1. 在/etc/profile 中增加一行 ulimit -SHn 65535
2. 在/etc/security/limits.conf 最后增加:
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
在 Debian 中使用第1 种方式,在 CentOS中使用第2种