0% found this document useful (0 votes)
48 views

Installation of MongoDB in Mac

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
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Installation of MongoDB in Mac

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
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 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 [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

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