How to Install MongoDB on Mac (Apple M1 chip)



How to Install MongoDB on Mac (Apple M1 chip)

How to Install MongoDB on Mac (Apple M1 chip)

In this video we will see How to Install MongoDB in Mac M1. MongoDB is a cross-platform document-oriented database program that is open source. MongoDB, a NoSQL database program, employs JSON-like documents with optional schemas.

To install MongoDB on a Mac M1, you can follow these steps:

Open the Terminal application on your Mac M1.

Install Homebrew by entering the following command in the terminal:
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”
After the installation of Homebrew is complete, enter the following command in the terminal to add the MongoDB tap:
brew tap mongodb/brew
Then, enter the following command to install MongoDB:
brew install mongodb-community
Once the installation is complete, you can start the MongoDB service by entering the following command:
brew services start mongodb-community
Finally, verify that MongoDB is running by entering the following command:
mongo
If MongoDB is running, you should see the MongoDB shell prompt, which looks like this:
MongoDB shell version v5.x.x
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”) }
MongoDB server version: x.x.x
Welcome to the MongoDB shell.
For interactive help, type “help”.
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
Note: make sure to replace “x.x.x” with the actual version number of the MongoDB installation.

#MongoDB #macOS #InstallMongoDB #DownloadMongoDB