试图在高负载的web服务器上获得相当于ulimit -n 20000的内容,但是,在ubuntu上的/etc/security/fins.conf似乎并不有效。
下面是我在配置文件中设置的内容。
root soft nofile 20000
root hard nofile 20000
www-data soft nofile 20000
www-data hard nofile 20000我也试过
* soft nofile 20000
* hard nofile 20000重新启动后,当我在root上运行ulimit -n、www-data或我的常规用户时,我仍然会看到默认的1024。
发布于 2009-10-13 05:53:03
您可能必须从/etc/pam.d (cron、su、sudo、sshd、登录)下的不同文件中取消pam_limits.so注释。
session required pam_limits.sohttps://serverfault.com/questions/73894
复制相似问题