Start MongoDB from command line

Written by Yujin Boby

Edit in WordPress

To start MongoDB from command line, run

mongod --auth --dbpath /path/to/mongodb

See MongoDB