UbuntuServer10.10 installation and configuration RVMRubyRails3passengerNgi

1. Update the system as a non-root user sudo apt-get update sudo apt-get upgrade 2. Set the host name, if the system is installed graphically, this step can be ignored sudo hostname your-hostname Add 127.0.0.1 your-hostname: sudo vim /etc/hosts Write your-hostname in: sudo vim /etc/hostname Verify that hostname is set: hostname 3. Install git &curl as non-root The new ubuntu system needs to install these packages; sudo apt-get install curl git 4. Install RVM $ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) add below to your .bashrc. [[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm” Once you edit your bashrc file execute the following to load rvm without logging out and back in Delete all returns in ~/.bashrc, [ -z “$PS1” ] && return Change to [ -z “$PS1” ] run: source ~/.rvm/scripts/rvm Just to be safe check wether rvm is a function, which is what it should be. 5. Install ruby ​​1.9.2 sudo aptitude “bash functions”>install “bash plain”>build-essential bison openssl libreadline5 libreadline5-dev curl git-core zlib1g zlib1g-dev libssl-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libmysqlclient-dev rvm “bash functions”> install “bash plain”>1.9.2 rvm use 1.9.2 –default 6. Install rails3 gem install rails 7. Install passenger and nginx gem install passenger rvmsudo passenger-install-nginx-module This step requires…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索