Last active
December 15, 2015 20:09
-
-
Save simkimsia/5316572 to your computer and use it in GitHub Desktop.
install mongodb on ubuntu 12.10 server
This file contains hidden or 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
| #!/bin/bash | |
| ### | |
| # | |
| # forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea | |
| # Copyright (c) 2011 Cake Development Corporation (http//cakedc.com) | |
| # | |
| # Ubuntu 12.10 based web server installation script | |
| # Run this by executing the following from a fresh install of Ubuntu 12.10 server: | |
| # | |
| # bash -c "$(curl -fsSL https://raw.github.com/gist/5316572)" | |
| # Also, run this as root, unless you enjoy failing. | |
| # | |
| # Its handy to install 'screen' if you want to ensure your remote connection to | |
| # a server doesn't disrupt the installation process. If you want to do this, just | |
| # do the following before running the main bash command: | |
| # | |
| # apt-get install screen -y | |
| # screen | |
| # | |
| # To recover your session if you are disconnected, ssh to your server as root again, | |
| # and type: | |
| # | |
| # screen -x | |
| # | |
| # Dependencies: | |
| # - curl | |
| # | |
| # Todo: | |
| # - SSL Configuration | |
| # | |
| ### | |
| ######################################## | |
| ## Install MongoDB as per http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ | |
| ######################################## | |
| ######################################## | |
| ## Configure Package Management System (APT) | |
| ## The Ubuntu package management tool (i.e. dpkg and apt) ensure | |
| ## package consistency and authenticity by requiring that distributors sign packages with GPG keys. | |
| ## Issue the following command to import the 10gen public GPG Key: | |
| ######################################## | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
| ######################################## | |
| ## Create a /etc/apt/sources.list.d/10gen.list file | |
| ## and include the following line for the 10gen repository. | |
| ######################################## | |
| echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" > /etc/apt/sources.list.d/10gen.list | |
| apt-get update | |
| apt-get install mongodb-10gen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment