1 min read

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL"

Find MongoDB tap

brew tap mongodb/brew

Install MongoDB Community Edition

brew install mongodb-community

Create a specific directory for security purposes

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

Give permissions to the directory

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

Starting MongoDB

brew services run mongodb-community

Mongo Shell


Common Problems

/bin/bash -c "$(curl -fsSL"
export PATH=/opt/homebrew/bin:$PATH
Orestis Pantazos

Orestis Pantazos

DevOps Engineer