Created
July 5, 2011 08:12
-
-
Save solisoft/1064455 to your computer and use it in GitHub Desktop.
Ubuntu 10.04 + mongodb + nodejs + nginx + ruby 1.9.2
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
Cloud | |
===== | |
apt-get update ; apt-get upgrade | |
apt-get install ruby rubygems curl git-core build-essential libssl-dev libcurl4-openssl-dev | |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
# Node.js | |
curl -O http://nodejs.org/dist/node-v0.4.9.tar.gz | |
tar -xf node-v0.4.9.tar.gz | |
cd node-v0.4.9 | |
./configure | |
make | |
make install | |
# npm | |
curl http://npmjs.org/install.sh | sh | |
# Add this line in .bashrc | |
echo '[[ -s "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm"' >> ~/.bash_profile | |
source ~/.bash_profile | |
rvm install 1.9.2 | |
rvm 1.9.2 | |
echo "gem: --no-ri --no-rdoc" >> .gemrc | |
# MongoDB | |
cd .. | |
curl -O http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.8.2.tgz | |
tar -xf mongodb-linux-x86_64-1.8.2.tgz | |
mv mongodb-linux-x86_64-1.8.2 /opt/mongodb | |
curl https://raw.github.com/gist/184398/fa590339d85ca39171e1d227e76b44ce9ac986a0/mongodb > /etc/init.d/mongodb | |
chmod +x /etc/init.d/mongodb | |
mkdir /home/mongodb_data | |
service mongodb start | |
# Nginx & passenger | |
gem install passenger | |
# Example | |
#server { | |
# listen 80; | |
# server_name www.yourhost.com; | |
# root /somewhere/public; # <--- be sure to point to 'public'! | |
# passenger_enabled on; | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment