How to Install MongoDB 4.2 on Debian 10/9/8
MongoDB is a fully flexible index support and rich queries database. It is a NoSQL database. MongoDB provides large media storage with GridFS. Click here for more details about this version of MongoDB. Use this tutorial to install MongoDB server 4.2 on Debian 10, Debian 9 Stretch, and Debian 8 Jessie systems.
Prerequisites
You must have shell access with sudo privileded account to your Debian system.
Login to your system and open a shell.
Step 1 – Installing MongoDB on Debian
You need to execute the following commands step by step to install MongoDB on Debian Linux systems.
- First of all, import the MongoDB public GPG key into your system
- Next, add MongoDB apt repository URL to your Debian system.
- Now, install the MongoDB server packages on the Debian system.
Press ‘y’ for any confirmation asked by the installer.
Step 2 – Manage MongoDB Service
MongoDB database server has been installed successfully on your system. Let’s execute the below command to start MongoDB servie.
Also, run the below command to enable MongoDB to start on system boot.
Step 3 – Test MongoDB Version
Finally, use the below command to check the installed MongoDB version on your system.
Also, connect MongoDB using the command line and execute some test commands for checking proper working.
0 Comments
CAN FEEDBACK
Emoji