The community edition of MongoDB can be set up on macOS using the following steps with
MongoDB 5.0 Community Edition supports macOS 10.14 or later.
- Tap the MongoDB Homebrew Tap:
brew tap mongodb/brew
- Install MongoDB:
brew install email@example.com
- Once it's installed, start it as a macOS service by running the following:
brew services start firstname.lastname@example.org
- If you need to stop MongoDB running as a macOS service, use this command:
brew services stop email@example.com
Check out my other MongoDB posts.
Want to ask a question or just chat? Contact me here