MongoDB
On-prem community edition
Table of contents
Install MongoDB (locally)
brew tap mongodb/brew
brew install mongodb-community@4.4
This installs
mongod
servermongos
sharded cluster query routermongo
shell
And also
/usr/local/etc/mongod.conf
configuration file/usr/local/var/log/mongodb
log directory/usr/local/var/mongodb
data directory
And finally MongoDB Database Tools
Location varies by system. Check with brew --prefix
.
Run and stop MongoDB (locally)
Run MongoDB as a macOS service (recommended)
brew services start mongodb-community@4.4
# Verify it is running (should be in started status)
brew service list | grep mongodb-community
You can then use the mongo shell via
mongo
Stop MongoDB
brew services stop mongodb-community@4.4
References: