Skip to content

Instantly share code, notes, and snippets.

@marcusandre
Last active October 9, 2015 21:38
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 marcusandre/3581058 to your computer and use it in GitHub Desktop.
Save marcusandre/3581058 to your computer and use it in GitHub Desktop.
install MongoDB on Ubuntu 12.04 LTS
#!/bin/bash
sudo 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
sudo apt-get -y update
sudo apt-get -y install mongodb-10gen
@LarryEitel
Copy link

Thank you for sharing. Suggest preface commands with sudo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment