mongodb installation on mac

Shell
//Starts Mongdb server @ mongodb://127.0.0.1:27017/
brew services start [email protected]
mongod --config /usr/local/etc/mongod.conf --fork
ps aux | grep -v grep | grep mongod
mongo//Starts Mongdb server @ mongodb://127.0.0.1:27017/
brew services start [email protected]

//Stops Mongdb server @ mongodb://127.0.0.1:27017/
brew services stop [email protected]

//mongo
mongo - starts the mongo client


ps -ef | grep mongod | grep -v grep | wc -l | tr -d ' 'brew services start [email protected]
#Step 3 to run as a servicemongod --config /usr/local/etc/mongod.conf --fork
brew install [email protected]
#Step 2
Source

Also in Shell: