Skip to content

Instantly share code, notes, and snippets.

@wavded
Created December 23, 2011 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavded/1515551 to your computer and use it in GitHub Desktop.
Save wavded/1515551 to your computer and use it in GitHub Desktop.
Installing MongoDB on Ubuntu Server and Desktop

Edit /etc/apt/sources.list and add the following lines to the bottom of the file:

# MongoDB
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

Then run the following commands:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
sudo apt-get update
sudo mkdir -p /data/db/
sudo apt-get install mongodb-10gen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment