Created
October 24, 2017 19:27
-
-
Save avishaan/749bd615d67c2270ccf7537c491ed1ba to your computer and use it in GitHub Desktop.
Fix meteor enfile issue on mac "Error: ENFILE: file table overflow, scandir '/Users/ronaldo.pontes/code/rea..."
This file contains 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
#!/bin/bash | |
sudo -v | |
echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf | |
echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf | |
sudo sysctl -w kern.maxfiles=65536 | |
sudo sysctl -w kern.maxfilesperproc=65536 | |
ulimit -n 65536 65536 | |
echo "add 'ulimit -n 65536 65536' to your .bashrc or .zshrc file" | |
echo "restart shell" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment