这是一个创建于 3642 天前的主题,其中的信息可能已经有所发展或是发生改变。
➜ sudo sysctl -a|grep file
fs.file-max = 2037581
fs.file-nr = 2784 0 2037581
➜ ~ cat /proc/sys/fs/file-max
2037581
➜ ~ cat /proc/sys/fs/file-nr
2720 0 2037581
/etc/security/limits.conf
* hard nofile 2037581
* soft nofile 2037581
root hard nofile 2037581
root soft nofile 2037581
/etc/pam.d/su
session required pam_limits.so
/etc/pam.d/common-session
session required pam_limits.so
reboot后仍然只能ulimit -n 4096, 再大就报
ulimit: value exceeds hard limit
2 条回复 • 2014-05-07 15:50:02 +08:00
|
|
1
rrfeng 2014-05-07 14:28:24 +08:00 1
USERNAME hard nofile 2037581 USERNAME soft nofile 2037581
|
|
|
2
cevincheung 2014-05-07 15:50:02 +08:00
/etc/security/limits.conf
* - nofile N root - nofile N
|