Last Updated: February 25, 2016
·
6.791K
· rshetty

Run MongoDB as a Daemon

After Installation of your MongoDB, Run this command

sudo mongod --fork --logpath /var/log/mongodb.log

This starts Mongodb as a Daemon which logs to /var/log/mongodb.log

That's it.

Happy Hacking!!!