Skip to content

Instantly share code, notes, and snippets.

@zubairalam
Created November 20, 2015 06:15
Show Gist options
  • Save zubairalam/756d30f4b4af181a30ce to your computer and use it in GitHub Desktop.
Save zubairalam/756d30f4b4af181a30ce to your computer and use it in GitHub Desktop.
sudo apt-key -y adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get -y update
sudo apt-get -y install mongodb-org
# Running Mongo
service mongod start
sudo /etc/init.d/mongod start
# Stopping Mongo
service mongod stop
sudo /etc/init.d/mongod stop
# Restarting Mongo
services mongod restart
sudo /etc/init.d/mongod restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment