部署rails ubuntu服务器

sudo vi /etc/apt/source.list
deb http://mirror.lupaworld.com/ubuntu intrepid main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu intrepid-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu intrepid-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu intrepid-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu intrepid-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu intrepid-proposed main restricted universe multiverse

upgrade os
sudo apt-get update ;sudo apt-get dist-upgrade; sudo apt-get upgrade

install ruby
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz
wget http://sites.google.com/site/brentsrubypatches/Home/MBARIp72patches.tar.gz?attredirects=0
sudo apt-get remove patch build-essential 
CFLAGS="-O2 -fno-stack-protector -mpreferred-stack-boundary=2" ./configure
make
./ruby -v
sudo make install

你可能感兴趣的:(OS,Security,ubuntu,Ruby,Rails)