Installing and securing MongoDB in Debian 11

The following tutorial describes how to install MongoDB in Debian 11.
We will do the whole thing by making a dozen or so entries in the console.

First, we download the necessary packages, we add the pgp key and get the mongoDB repositories

We update the package list and install mongoDB

Run it on your system:

We can check the version of Mongodb by issuing the command:

the result of the:

Now we will enable authorization in mongoDB

We execute the command:

And we connect:

We create the base:

the result of the:

We exit using the CRTL shortcut + D

We edit the configuration file:

And change:

The last step is to reload the service:

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.