Skip to content

Mongo Usage Errors (Mac OS)

coder4869 edited this page Aug 26, 2016 · 2 revisions

1.** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000

Way1: "$ ulimit -n 1024 && mongod" (permanent)
Way2: "$ launchctl limit maxfiles 1024 1024" (permanent: adding "launchctl limit maxfiles 1024 1024" to file '/etc/launchd.conf')

Reference: https://tech.enekochan.com/en/2013/12/08/warning-soft-rlimits-too-low-in-mongodb-with-mac-os-x/

Clone this wiki locally