**Step 1: **
brew tap mongodb/brew
Step 2:
brew update
Step 3:
brew install mongodb-community@7.0
The installation includes the following binaries:
-
The
mongod
server -
The
mongos
sharded cluster query router -
The MongoDB Shell,
mongosh
Start mongodb:
brew services start mongodb/brew/mongodb-community
Start mongod
mongod