2007-11-19 Debian Linux ulimit -n nofile madness
So you want to increase the maximum allowed number of file descriptors per process under debian linux?
Edit /etc/security/limits.conf and add a line like “ - nofile -”. Which means set the hard and soft (first “-”) nofile limits to unlimited (second “-”).
To test, restart sshd then log out and back in. You should now see ulimit -n unlimited when you run “ulimit -a”.
Note: The sshd restart is important if you’re testing this remotely - the visible ulimits won’t change until you restart sshd, logout and log back in.
Edit /etc/security/limits.conf and add a line like “
To test, restart sshd then log out and back in. You should now see ulimit -n unlimited when you run “ulimit -a”.
Note: The sshd restart is important if you’re testing this remotely - the visible ulimits won’t change until you restart sshd, logout and log back in.
