1. 程式人生 > >feige05543206的專欄

feige05543206的專欄

有如下兩種種修改方式:
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種