How to install mongoDB community on macOS
Ticha Godwill Nji
Posted on March 4, 2024
In todays article, I will just quickly walk you through on how you can install mongoDB on your macOS.
There're multiple ways that you can use to install mongoDB on your system but today I will just talk about one of the methods.
Head on to the mongoDB official website at Install on macOS.
As a prerequisite, you will need to install the Homebrew package manager. Run this command on your terminal to install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installing Homebrew package manager, run this command on your terminal to install Xcode
xcode-select --install
Tap the MongoDB Homebrew Tap to download the official Homebrew formula for MongoDB and the Database Tools, by running the following command in your macOS Terminal:
brew tap mongodb/brew
Run this command to update Homebrew
brew update
After updating Homebrew, run this command on your terminal to install MongoDB
brew install mongodb-community@7.0
Happy coding!
Posted on March 4, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 30, 2024
November 30, 2024