nofile這個關鍵字很重要,查看下nofile這個參數(shù)設置
vi? ?/etc/security/limits.conf
* soft nofile 102400
* hard nofile 102400
* soft nofile 102400
* hard nofile 102400
然后查看下 nr_open
cat /proc/sys/fs/nr_open
100000
這個值小于hard nofile正常情況是無法這樣設置的,查看vi /etc/sysctl.conf
修改fs.nr_open大于或等于hard nofile重啟后OK (也可以sysctl -w fs.nr_open=100000000)
PS:單用戶模式輸入exec /sbin/init退出單用戶模式
問題解決:sysctl 設置 fs.nr_open 大于等于 /etc/security/limits.conf 的 hard nofile