Skip to content

Instantly share code, notes, and snippets.

@40
Created December 22, 2011 00:12
Show Gist options
  • Save 40/1508317 to your computer and use it in GitHub Desktop.
Save 40/1508317 to your computer and use it in GitHub Desktop.
Install mongoDB on Ubuntu Linux Distribution
#add line to sources.list inside /etc/apt/sources.list
sudo vim /etc/apt/sources.list
i
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
ESC
:wq
# update "/etc/apt/sources.list"
sudo apt-get update
# import gpg key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB1
# install mongodb package
sudo apt-get install mongodb-10gen
# test install
mongo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment