Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 2

Installation Of

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)"

Then We have to give some more


commands like

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

In upper commands in the place of 5.0 we have to use latest


version.
After use of all commands, MongoDB is installed
You can use MongoDB Compass and use that in localhost.

For Uninstall Follow These Instruction


Link: https://www.mongodb.com/basics/uninstall-mongodb

You might also like