Ulimit
vi /etc/pam.d/common-session

add

session required    pam_limits.so

Then

vi /etc/security/limits.conf

add

command hard nofile 9999
command soft nofile 9999
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License