Skip to content

Instantly share code, notes, and snippets.

@rupeshtiwari
Last active March 18, 2024 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rupeshtiwari/f657523b602ad2d74b7d8435e04a8473 to your computer and use it in GitHub Desktop.
Save rupeshtiwari/f657523b602ad2d74b7d8435e04a8473 to your computer and use it in GitHub Desktop.
Installing mongodb on macos

Installing mongodb on MacOS


Install Homebrew if not installed

image

**Step 1: **

brew tap mongodb/brew

image

Step 2:

brew update

image

Step 3:

brew install mongodb-community@7.0

image

image

The installation includes the following binaries:

  • The mongod server

  • The mongos sharded cluster query router

  • The MongoDB Shell, mongosh

Start mongodb:

brew services start mongodb/brew/mongodb-community

image

Start mongod

mongod

image

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