Installing Ubuntu MongoDB 18.04

Today I present a guide so that in a few steps install MongoDB on our server with Ubuntu.
Feel free to read.

At the beginning we make an update repositories

Then we install MongoDB

Check the server status MongoDB command:

the result of the:

Which indicates that the server is running correctly.

To confirm this connection we make a diagnostic command:

We should get the result as below:

If you use the firewall must add a port to exceptions in the case of UFW:

Command

This will allow us to verify whether a connection on this port is open:

To allow remote connection, edit the file:/etc/mongodb.conf

And set:

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.