Verified and Tested 02/25/15


In this How-To, we will walk you through the basic install and configuration of MongoDB on your Ubuntu 14.04 Cloud Server.

MongoDB is database software that stores specified information in one single table document instead of creating separate table documents for an item. This make it easier to work with and space efficient.


A cloud server with Ubuntu 14.04 already installed. If you do not already have a server, why not consider spinning up a VPS cloud server from Atlantic.Net.

Installing MongoDB on Ubuntu

Import public key of 10gen repository into our system:

sudo apt-key adv --keyserver hkp:// --recv 7F0CEB10

Add the 10 gen MongoDB APT repository url in /etc/apt/sources.list.d/mongodb.list.

echo 'deb dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list

Update your system and install MongoDB in your system.

sudo apt-get update
sudo apt-get install mongodb-org

Start/Stop MongoDB with the following:

sudo service mongod start
sudo service mongod stop

Verify the MongoDB version that is currently installed:

mongo --version

Connect to your MongoDB:


Run the following to verify your installation: { tecadmin: 100 } )

Output below:

{ "_id" : ObjectId("52b0dc8285f8a8071cbb5daf"), "tecadmin" : 100 }
{ "_id" : ObjectId("54eb3ae8e7e4fe28bbb52e07"), "tecadmin" : 100 }

Congratulations! You have just installed MongoDB on your Ubuntu 14.04 Cloud Server. Thank you for following along in this How-To and check back with us for any new updates.