how to kill all processes for mongo database on mac code example
Example 1: exit mongodb
// In db shell
use adim
db.shutdownServer()
Example 2: run MongoDB manually as a background process macos
mongod --config /usr/local/etc/mongod.conf --fork
// In db shell
use adim
db.shutdownServer()
mongod --config /usr/local/etc/mongod.conf --fork