Atlantic.Net Blog

How to Install MongoDB on Ubuntu 14.04

Jose Velazquez
by Atlantic.Net (71posts) under HIPAA Compliant Database Hosting
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 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 – or read more about our HIPAA compliant database hosting.

Start Your HIPAA Project with a Free Fully Audited HIPAA Platform Trial!

HIPAA Compliant Compute & Storage, Encrypted VPN, Security Firewall, BAA, Offsite Backups, Disaster Recovery, & More!

Start My Free Trial

Looking for HIPAA Compliant Hosting?

We Can Help with a Free Assessment.

  • IT Architecture Design, Security, & Guidance.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now!
Stevie Gold Award Med Tech Award

SOC Audit HIPAA Audit HITECH Audit

Case Studies

White Papers


HIPAA Partners

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G2.1GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom