Professional Documents
Culture Documents
Installation of MongoDB in Mac
Installation of MongoDB in Mac
MongoDB In Mac
First we have to install brew from
command line
Website: https://brew.sh/
Command: /bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebr
ew/install/HEAD/install.sh)"
xcode-select --install
brew tap mongodb/brew
brew install mongodb-community@5.0
brew install mongodb/brew/mongodb-community
brew install --cask mongodb-compass
brew services start mongodb-community@5.0
brew services stop mongodb-community@5.0
mongod --config /opt/homebrew/etc/mongod.conf --fork
mongosh