Skip to content

Instantly share code, notes, and snippets.

@mylesjao
Created May 22, 2014 07:45
Show Gist options
  • Save mylesjao/b48eda6b4187fb942e19 to your computer and use it in GitHub Desktop.
Save mylesjao/b48eda6b4187fb942e19 to your computer and use it in GitHub Desktop.
mongodb installation on ubuntu
#!/bin/bash
echo "Import the public key used by the package management system...."
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'Create a list file for MongoDB...'
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
echo 'Reload local package database.'
sudo apt-get update
echo 'Install the latest stable version of MongoDB.'
sudo apt-get install mongodb-org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment