Update Homebrew’s package database.
In a system shell, issue the following command:
brew update
2
Install MongoDB.
You can install MongoDB via brew with several different options. Use one of the following operations:
Install the MongoDB Binaries
To install the MongoDB binaries, issue the following command in a system shell:
brew install mongodb
Build MongoDB from Source with TLS/SSL Support
To build MongoDB from the source files and include TLS/SSL support, issue the following from a system shell:
brew install mongodb --with-openssl
Install the Latest Development Release of MongoDB
To install the latest development release for use in testing and development, issue the following command in a system shell:
brew install mongodb --devel
时间: 2024-11-06 01:04:38