0% found this document useful (0 votes)
78 views2 pages

Install MongoDB on Mac Using Brew

To install MongoDB on a Mac, you first need to install Homebrew from the command line using the provided curl command. You then need to run several commands through Homebrew to tap, install, and start MongoDB Community version 5.0 and MongoDB Compass. Finally, MongoDB can be accessed locally using mongosh after installation and Compass or uninstalled by following instructions on MongoDB's website.

Uploaded by

Shivam Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Install MongoDB on Mac Using Brew

To install MongoDB on a Mac, you first need to install Homebrew from the command line using the provided curl command. You then need to run several commands through Homebrew to tap, install, and start MongoDB Community version 5.0 and MongoDB Compass. Finally, MongoDB can be accessed locally using mongosh after installation and Compass or uninstalled by following instructions on MongoDB's website.

Uploaded by

Shivam Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

Installation Of

MongoDB In Mac
First we have to install brew from
command line
Website: [Link]
Command: /bin/bash -c "$(curl -fsSL
[Link]
ew/install/HEAD/[Link])"

Then We have to give some more


commands like

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/[Link] --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: [Link]

You might also like