Install Mongo on MacOS
First you need tap official #mongo brew:
brew tap mongodb/brew
Then just install mongo with:
brew install mongodb-community
There is one tool which people often want to install on its own, and that’s the MongoDB shell.
brew install mongodb-community-shell
You can also install only database tools for managing mongo database:
brew install mongodb-database-tools
Starting mongo
brew services start mongodb-community
or stop
brew services stop mongodb-community