Created
April 25, 2023 03:40
-
-
Save ekzhang/2721898e5ee8c27a9b5cace4de0703b4 to your computer and use it in GitHub Desktop.
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
echo '* soft nofile 1048576' | sudo tee -a /etc/security/limits.conf | |
echo '* hard nofile 1048576' | sudo tee -a /etc/security/limits.conf | |
echo 'root soft nofile 1048576' | sudo tee -a /etc/security/limits.conf | |
echo 'root hard nofile 1048576' | sudo tee -a /etc/security/limits.conf | |
echo 'session required pam_limits.so' | sudo tee -a /etc/pam.d/common-session | |
echo 'DefaultLimitNOFILE=1048576:1048576' | sudo tee -a /etc/systemd/system.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment