I run MongoDB on Mac:
Shave:mongodb_simple Logan$ ./bin/mongod -f conf/mongod.conf
about to fork child process, waiting until server is ready for connections.
forked process: 5110
ERROR: child process failed, exited with error number 14
Is that because I shutdown it in wrong way?
Check the ownership of the file /tmp/mongodb-27017.sock
It should be mongod
. I got same error since it was root:root
By changing owner to mongodb
for all files under /var/lib/mongodb/
it started working for me:
chown mongodb:mongodb -R /var/lib/mongodb/
If 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