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 following commands step by step to install MongoDB on Debian Linux systems.

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.

How to Create and Drop Users in MongoDB

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.

How to Create and Drop database in MongoDB