This is a very quick guide to installing MongoDB in Ubuntu through the terminal. If you need a more detailed explanation and why and how of the steps, you can refer this link from which I got the source to write this blog post. Here you will finished installing MongoDB for Ubuntu 14.04 LTS in 5 steps. It is really easy.
1. Import the public key used by the package management system.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
2. Create a list file for MongoDB.
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
3. Reload local package database.
sudo apt-get update4. Install the MongoDB packages.
sudo apt-get install -y mongodb-org
5. Start MongoDB.
sudo service mongod start
Cheers. :)
Comments
Post a Comment