Last active
December 26, 2017 21:49
-
-
Save javierfdezg/ea7173be7d3d7a07af2a to your computer and use it in GitHub Desktop.
Installing mongodb in Ubuntu 14.10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it safe to install it to an already running server with some domains up and running?