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 [email protected]
brew install mongodb/brew/mongodb-community
brew install --cask mongodb-compass
brew services start [email protected]
brew services stop [email protected]
mongod --config /opt/homebrew/etc/mongod.conf --fork
mongosh