Install MongoDb on Mac (Big Sur)

Naxir
Dec 10, 2020

Hi, in this article I will show you all the steps to install MongoDb on your mac i.e Big Sur!!!

Install Homebew

# Installs Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Find the MongoDb Tap

brew tap mongodb/brew

Install MongoDB

brew install mongodb-community
Apple created new volume in Catalina due to security purposes

Create ‘/data/db’ folder

sudo mkdir -p /System/Volumes/Data/data/db

For Permissions

sudo chown -R `id -un` /System/Volumes/Data/data/db

Start MongoDb

brew services run mongodb-community
brew services run mongodb-community

Check if MongoDb Is Running

brew services list
It’s Running :)

Access MongoDb Shell

mongo

Stop! MongoDb

brew services stop mongodb-community
Stop!

I hope that you liked this article and if you do , don’t forget about commenting!!! See ya! : 😊

--

--

Naxir

Programmer, Contributor @NativeBase @ReactS3Uploader