问题原文
原帖链接 · Icu · CC BY-SA 3.0
On Debian Wheezy, ulimit -a gives:
open files (-n) 1024
I add this to /etc/security/limits.conf
* hard nofile 64000
then reboot.
And ulimit -a still gives a maximum number of open files of 1024. Anyone could throw some light on it?
已采纳解答
原帖链接 · Dennis Nolte · CC BY-SA 3.0
Option one: You did not set the softlimit higher aswell.
Possible solution:
in /etc/security/limits.conf add
* soft nofile 2048
test with
ulimit -n 2048
Option two: You are logged in as user and in some "config" file (profile, bashrc, something like this) the soft limit is set to a lower value.
Possible solution f.e. grep for ulimit in your etc folder and/or home folder.
Warning: Depending on the amount of files/directorys you have in there you might want to consider only specific directorys/files
ps: there are a lot of similiar question here you might want to read up.
Specially Hard vs Soft Limit
Read here for possible other solution which go more into detail Too Many Open Files
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
