Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

brew install mongodb vs [email protected]

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?


Update

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    |                                           |
+-----------------------------+-------------------------------------------|
like image 659
RyanDay Avatar asked May 04 '19 20:05

RyanDay


People also ask

Can MongoDB community be used in production?

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) .

What is MongoDB Community Edition?

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.

Where MongoDB is installed on Mac?

The databases are stored in the /usr/local/var/mongodb/ directory. The mongod. conf file is here: /usr/local/etc/mongod.


1 Answers

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/

like image 142
Mike Avatar answered Oct 21 '22 23:10

Mike