Skip to content

Instantly share code, notes, and snippets.

@niksmac
Created January 22, 2014 06:51
Show Gist options
  • Save niksmac/8554457 to your computer and use it in GitHub Desktop.
Save niksmac/8554457 to your computer and use it in GitHub Desktop.
Install Latest version of MongoDB in ubuntu.
# Copy the following into a new file named `mongo_install.bash` in your home directory:
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list.d/10gen.list
apt-get -y update
apt-get -y install mongodb-10gen
# Execute the following from your home directory:
$ sudo bash ./mongo_install.bash
# If everything is successful, you should see the output contain a PID of the newly started MongoDB process:
mongodb start/running, process 2368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment