文件描述符限制更新失败 [英] Update failed of file descriptor limit

查看:107
本文介绍了文件描述符限制更新失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台使用Debian wheezy x64的服务器,我在星号服务器上遇到了问题尝试使用ulimit -n增加最大文件描述符",我尝试按以下方式更改文件描述符限制:

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

我在文件末尾添加了

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

当我尝试测试时:

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

我想念什么吗? (我重新启动了服务器,但是得到了相同的值)

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

我使用了教程

推荐答案

我找到了一个解决方案,只是我在/etc/security/limits.conf文件中用以下几行更改了配置:

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

这篇关于文件描述符限制更新失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆