Skip to content

Instantly share code, notes, and snippets.

@javierfdezg
Last active December 26, 2017 21:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save javierfdezg/ea7173be7d3d7a07af2a to your computer and use it in GitHub Desktop.
Save javierfdezg/ea7173be7d3d7a07af2a to your computer and use it in GitHub Desktop.
Installing mongodb in Ubuntu 14.10
# Setting up the repo
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
# Updating and installing
sudo apt-get update
# WARNING: check out the -y here...
sudo apt-get install -y mongodb-org
# For a specific version, use this command
# apt-get install mongodb-org=3.0.0 mongodb-org-server=3.0.0 mongodb-org-shell=3.0.0 mongodb-org-mongos=3.0.0 mongodb-org-tools=3.0.0
# Freeze the package, we don't want surprises if someone upgrades
sudo apt-mark hold mongodb-org
@sunsgs
Copy link

sunsgs commented Jan 24, 2017

Is it safe to install it to an already running server with some domains up and running?

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