Created
May 22, 2017 01:32
-
-
Save viniciusdiogo/23c17f1f5b391353867a830ef40ec789 to your computer and use it in GitHub Desktop.
Mac Limit Open File NodeJs
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
| #!/bin/sh | |
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment