Created
April 24, 2017 22:55
-
-
Save kolunar/aa9d645717afe74add0b6d408cb3bde3 to your computer and use it in GitHub Desktop.
Changing open file limit for all users on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First, check "$ ulimit -a". | |
Go to /etc/security/limits.conf and add the two lines described below: | |
* soft nofile 10240 | |
* soft nproc 10240 | |
Reboot system or add following line to the end of /etc/pam.d/common-session: | |
session required pam_limits.so | |
Finally, check "$ ulimit -a" again and see the difference. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment