Created
December 1, 2014 16:37
-
-
Save yamishi13/0b281cda44ee32a6473a to your computer and use it in GitHub Desktop.
MongoDB and Rails installer
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
#/bin/bash | |
#install ruby 2.1.2 | |
apt-get update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp | |
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz | |
tar -xvzf ruby-2.1.2.tar.gz | |
cd ruby-2.1.2/ | |
./configure --prefix=/usr/local | |
make | |
make install | |
cd .. | |
rm ruby-2.1.2/ | |
rm ruby-2.1.2.tar.gz | |
#install mongodb 2.6.5 | |
apt-key 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 | |
apt-get update | |
apt-get install -y mongodb-org=2.6.5 mongodb-org-server=2.6.5 mongodb-org-shell=2.6.5 mongodb-org-mongos=2.6.5 mongodb-org-tools=2.6.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment