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
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
Check if MongoDb Is Running
brew services list
Access MongoDb Shell
mongo
Stop! MongoDb
brew services stop mongodb-community
I hope that you liked this article and if you do , don’t forget about commenting!!! See ya! : 😊