i ran on Mac OSX capitan and everytime i run mongo shell, this warning will pop up. i tried:
sudo ulimit -n 1024
ulimit -n 1024
it still doesn't work. any ideas?
You should try to close your terminal and redo it. Or directly try it in your shell which runs mongodb.
Run the following bash code:
sudo launchctl limit maxfiles 65536 65536
sudo launchctl limit maxproc 2048 2048
ulimit -n 65536
ulimit -u 2048
Close the terminal or bash and restart.
ulimit -n
in terminal to test if change successfullyIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With