信息版本
CentOS release 6.2
Ruby 1.9.3
Nginx 1.4.3
安装需要的包
1
| yum install -y git gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
|
安装ruby
1
2
3
4
5
6
7
8
| curl -L https://get.rvm.io | bash -s stable --ruby
#curl -L 表示允许跳转
#bash -s 模拟标准输入
#安装位置/usr/local/rvm/scripts/rvm
vim /etc/bashrc #增加环境变量
source /usr/local/rvm/scripts/rvm
source /usr/local/rvm/scripts/completion
|