Skip to content

Install MongoDB

Install MongoDB Locally on Mac

The official MongoDB installation guide is available at https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/

Installing MongoDB 8.0 Community Edition

Terminal window
brew tap mongodb/brew
Terminal window
brew update

To install MongoDB, run the following command in your macOS Terminal application:

Terminal window
brew install mongodb-community@8.0

Run MongoDB Locally on Mac

Terminal window
brew services start mongodb-community@8.0

Run MongoDB Locally in Docker

Terminal window
docker run --name payblocks-mongodb -p 27017:27017 -v mongo-volume:/data/db -d mongo:8

Install MongoDB Compass

MongoDB Compass is a GUI for MongoDB. It is not required to run MongoDB, but it is useful for managing your MongoDB databases.

https://www.mongodb.com/try/download/compass


To see tutorials for Windows and Linux see: https://www.mongodb.com/docs/manual/installation/