Monday, April 11, 2016

How to install latest version of MongoDB in Ubuntu 14.04?

Follow the below steps to install mongodb in Ubuntu 14.04 version.

1.) sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
2.) Create list file for MongoDB with the following command.
    echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
3.) Reload local package database
    sudo apt-get update
4.) Install latest version of MongoDB with the following command
   sudo apt-get install -y mongodb-org
5.) Start MongoDB service with the following command.
 sudo service mongod start

Source: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

No comments:

Post a Comment