Databases

1 min read

Install Homebrew

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

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

mongo

Common Problems

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
export PATH=/opt/homebrew/bin:$PATH
Orestis Pantazos

Orestis Pantazos

DevOps Engineer