How to Install Latest MongoDB on macOS



How to Install Latest MongoDB on macOS

How to Install Latest MongoDB on macOS

Commands used in the video
——————————————————–
1. Install Xcode Command-Line Tools
$ xcode-select –install

2. Install Homebrew – https://brew.sh/
$ /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”

3. Install MongoDB 6.0 Community Edition
$ brew tap mongodb/brew

$ brew update
$ brew install [email protected]

4. Run MongoDB
$ brew services start mongodb/brew/mongodb-community

5. Connect and use MongoDB
$ mongosh

Official tutorial: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/

#mongo #mongodb #macos #mac #install #tutorial #latest #profsadat @ProfSadat

Comments are closed.