Skip to content

Instantly share code, notes, and snippets.

@eesa1980
Last active May 13, 2022 10:08
Show Gist options
  • Save eesa1980/a4d7710bb2edc0b05b11d3c8f29241b6 to your computer and use it in GitHub Desktop.
Save eesa1980/a4d7710bb2edc0b05b11d3c8f29241b6 to your computer and use it in GitHub Desktop.
Install Mongo DB #Mongo

https://stackoverflow.com/questions/57856809/installing-mongodb-with-homebrew

Install

brew services stop mongodb
brew uninstall homebrew/core/mongodb

brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community

Create db folder:

mkdir -p ~/data/db
sudo chown -R `id -un` ~/data/db
# Enter your password

Start the server

mongod

Mongo shell

# Run
mongo

# exit
quit()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment