小编Bra*_*wig的帖子

limit.conf 设置不“坚持”

试图在高负载 Web 服务器上获得相当于 ulimit -n 20000 的值,但是 ubuntu hardy 上的 /etc/security/limits.conf 似乎并没有坚持。

这是我在配置文件中设置的。

root             soft    nofile         20000
root             hard    nofile         20000
www-data             soft    nofile         20000
www-data             hard    nofile         20000
Run Code Online (Sandbox Code Playgroud)

我也试过

*             soft    nofile         20000
*             hard    nofile         20000
Run Code Online (Sandbox Code Playgroud)

重新启动后,当我在 root、www-data 或我的普通用户上运行 ulimit -n 时,我仍然看到默认的 1024。

ubuntu tcpip ulimit

8
推荐指数
1
解决办法
3512
查看次数

标签 统计

tcpip ×1

ubuntu ×1

ulimit ×1