How to install MongoDB 5.0 Server on Debian 11 Bullseye – Linux Shout

Learn the simple steps to install MongoDB server and client on Debian 11 to manage local or remote Databases with the help of a command terminal.
MongoDB is a database based on a non-relational document model. As a so-called NoSQL database (NoSQL = Not-only-SQL) it differs fundamentally from conventional relational databases such as Oracle, MySQL, or the Microsoft SQL Server. The name MongoDB is derived from the English word “humongous”, which roughly means “gigantic”.
Contents
During this article, the official repository of MongoDB is only available for Debian 10 Buster, however, we can use the same on Debian 11 Bullseye as well to install the same.
As we know the MongoDB packages are not available to install directly from the base repository of Debian 11 or 10., therefore, we need to add the official one offered by the developers of this NoSQL database.
To ensure the packages we will receive to install this database on our Linux are from an authentic source. Add the GPG signed key by the developers of the Database server.
 
On your Debian 11 or 10 command terminal run the system update command to make sure all the existing packages are up to date.
 
That’s it. We have configured already what we need to install “database-tools, mongosh, extra tools, mongos; database server and shell” on our Debian 11 or 10 Linux.
Hence, just run a simple command:
 
Once the installation is completed, let’s enable and also start the service of the Database server, so that we don’t need to run it again and again with system boot.
to check the status:
Start MongoDB service on Debian 11
 
To confirm what version exactly installed on your system, run:
Command to check mongo database server version
 
To get the mongo command line simply type:
Whereas to know- how to use this database commands, see the official documentation. 
 
Well, those who are not interested anymore in MongoDB and doesn’t require it, can remove the same using the below-given command:
 
Other Articles:
 
 
 
Debian

Linux

Ubuntu

Debian









This site uses Akismet to reduce spam. Learn how your comment data is processed.
Linux Shout crafted as a part of our main portal H2S Media to publish Linux related tutorials and open source Software.

source

We will be happy to hear your thoughts

Leave a reply

LINXGO
Logo
Compare items
  • Total (0)
Compare