MongoDB

From wiki-ben
Jump to: navigation, search

Install MongoDB

Linux Mint

A walkthrough tutorial is available on the blog site: https://blog.bensoer.com/install-mongodb-on-linux-mint/

A brief breakdown of the steps will be listed here

  1. Run the Following Command: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
  2. Edit the Follow Command:
    echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
  3. Replace $(lsb_release -sc) with the appropriate ubuntu version the Mint version you are installing MongoDB on is based off of. You can find a full list here : http://www.linuxmint.com/oldreleases.php
  4. Update dependencies: sudo apt-get update
  5. Install Latest Version of MongoDB: sudo apt-get install -y mongodb-org

Ubuntu

To install on Ubuntu, the procedure is very simple. Executes the following commands in the listed order:

  1. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
  2. echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
  3. sudo apt-get update
  4. sudo apt-get install -y mongodb-org

Note that this will install the latest version of mongo. To install a specific version see MongoDB Docs in the sources

Notes

Sources

https://blog.bensoer.com/install-mongodb-on-linux-mint/
http://glenngeenen.be/untitled/
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/