how to start and stop mongodb mac code example
Example 1: mongodb stop server mac
//stops mongodb server
brew services stop [email protected]
//starts mongodb server
brew services start [email protected]
Example 2: how to start mongodb in mac
command to activate mongodb through a terminal
mongod --dbpath /usr/local/var/mongodb --logpath /usr/local/var/log/mongodb/mongo.log --fork