How to Install MongoDB on VPS VULTR Ubuntu 14.04

MongoDB is one of the leading NoSQL databases that is commonly used in modern web applications. This tutorial will walk you through setting up MongoDB. Please note that this tutorial is meant for Ubuntu 14.04, but it should work on other distributions of Ubuntu as well. These steps have not been tested on Linux distros other than Ubuntu.

How to Install MongoDB on VPS VULTR Ubuntu 14.04

How to Install MongoDB on VPS VULTR Ubuntu 14.04

Step 1: Update System

You will want to make sure that your server is up-to-date. If you are setting up your VPS for the first time, it should already be up-to-date. However, if you are running a Custom ISO, or installing on an existing VPS, then you can run the following command to do a system update:

Once this is complete, you will be ready to move onto the next step.

Step 2: Install MongoDB using APT

There are a few ways to install MongoDB. In this tutorial, we will be installing it using the following command:

This will take a moment to install. Once it has finished installing, you can then test that MongoDB is operational by typing mongo into your command line. If everything works, you will see:

You can also verify that MongoDB is running by typing the following:

Which should give you something similar to:

If you see that you have successfully installed and ready to use MongoDB on your Vultr VPS.