Skip to content

Instantly share code, notes, and snippets.

@ekzhang
Created April 25, 2023 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekzhang/2721898e5ee8c27a9b5cace4de0703b4 to your computer and use it in GitHub Desktop.
Save ekzhang/2721898e5ee8c27a9b5cace4de0703b4 to your computer and use it in GitHub Desktop.
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