The mongodb docs say to first tap the official MongoDB formula repository:
brew tap mongodb/brew
then to install [email protected]:
brew install [email protected]
Every other tutorial I see says to just install mongodb:
brew install mongodb
What's the difference? Why choose one over the other?
I tried installing one then uninstalling and trying the other. Here are the differences I've noticed so far:
+-----------------------------+-------------------------------------------+
| | |
| brew install mongodb | brew install [email protected] |
| | |
|-----------------------------+-------------------------------------------|
| version 4.0.3 | version 4.0.9 |
+-----------------------------+-------------------------------------------+
| brew services start mongodb | brew services start [email protected] |
| works fine. | gives "uninitialized constant" error |
+-----------------------------+-------------------------------------------+
| mongo connects to | mongo connects to |
| mongodb://127.0.0.1:27017 | mongodb://127.0.0.1:27017/?gssapiServiceN |
| | ame=mongodb |
+-----------------------------+-------------------------------------------|
| "This server is bound | "soft rlimits too low..." warning |
| to localhost..." warning | |
+-----------------------------+-------------------------------------------|
Yes it is free to use. Consider MongoDB Atlas if you don't want to manage mongodb yourself. Welcome to the community @Durga_Prasad_Gembali! The MongoDB Community Server is licensed under the Server Side Public License (SSPL) .
MongoDB Community edition is a free, open-source database that is a popular option for powering modern applications. It's a document-based and distributed database that was designed to leverage cloud technologies.
The databases are stored in the /usr/local/var/mongodb/ directory. The mongod. conf file is here: /usr/local/etc/mongod.
As of Sep. 2, 2019, MongoDB was removed from the Homebrew core formulas because newer versions of MondoDB are no longer published under open-source licenses. So, brew install mongodb
should no longer be used.
The new way of installing MongoDB with Homebrew is to use brew install [email protected]
. You'll need to tap the repository maintained by the MongoDB team first. For example:
$ brew tap mongodb/brew
$ brew install [email protected]
$ brew services start [email protected]
Read the Homebrew team's pull request about it here: https://github.com/Homebrew/homebrew-core/pull/43770
MongoDB full installation instructions: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With