Update failed of file descriptor limit

这一生的挚爱 提交于 2019-12-25 02:53:47

问题


I have a server with Debian wheezy x64, I have problem with asterisk server "Try increasing max file descriptors with ulimit -n", I try to change the file descriptor limit as follows:

# su - asterisk
$ ulimit -Hn
4096
$ ulimit -Sn
1024
$ exit
# vi /etc/security/limits.conf

I added in the end of the file:

....
asterisk        soft    nofile          65535
asterisk        hard    nofile          65535
# End of file

And when I try to test:

# su - asterisk
$ ulimit -Hn
4096
$ ulimit -Sn
1024
$

am I miss somethings? (I rebooted the server but I get the same values)

I used this tutorial


回答1:


I found a solution, just I change the configuration in the file /etc/security/limits.conf with following lines:

....
*        soft    nofile          65535
*        hard    nofile          65535
# End of file


来源:https://stackoverflow.com/questions/22228451/update-failed-of-file-descriptor-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!