How to Install MongoDB on Mac (Catalina)

brew --version
  1. Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew tap mongodb/brew
brew install mongodb-community
sudo mkdir -p /System/Volumes/Data/data/db
sudo chown -R `id -un` /System/Volumes/Data/data/db
brew services run mongodb-community
brew services list
This means MongoDB is running.
brew services stop mongodb-community

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yeti Learn

Yeti Learn

Team Yeti are working for preparing courses that makes you an expert in a specific area.