[ulimit]增加連線數
發表於 : 2010-08-17 11:49:30
from http://www.ubun2.com/question/433/how_s ... ound_error
If you are root, execute the command below
If you want to set it permanently, especially for a particular user, change the file /etc/security/limits.conf to have the following lines (assume user = www-data)
E.g.
And make sure uncomment pam_limits.so from the different files under /etc/pam.d, e.g. sudo, login, sshd, ...
Finally restart your system
Source:
http://www.linuxask.com/questions/incre ... escriptors
If you are root, execute the command below
代碼: 選擇全部
ulimit -SHn 65535
E.g.
代碼: 選擇全部
www-data hard nofile 65535
www-data soft nofile 65535
Finally restart your system
Source:
http://www.linuxask.com/questions/incre ... escriptors