install mongodb on ubuntu 14.04

#Step 1: Import the MongoDB public key
sudo apt-key adv –keyserver hkp:// –recv 7F0CEB10

#Step 2: Generate a file with the MongoDB repository url
echo ‘deb dist 10gen’ | sudo tee /etc/apt/sources.list.d/mongodb.list

#Step 3: Refresh the local database with the packages
sudo apt-get update

#Step 4: Install the last stable MongoDB version and all the necessary packages on our system
sudo apt-get install mongodb-org


sudo apt-get install -y mongodb

Leave a Reply

Your email address will not be published. Required fields are marked *