1.CentOS

\curl -L https://get.rvm.io | bash -s stable


如果报错误

//libyaml-devel not found

需要更新yum repository


更新

curl -O http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/atomic-release-1.0-14.el6.art.noarch.rpm


安装

 rpm -Uvh atomic-release-1.0-14.el6.art.noarch.rpm


安装libyaml-devel

yum install libyaml-devel


rvm get stable


rvm pkg install openssl


rvm install 2.0.0     --with-openssl-dir=$HOME/.rvm/usr     --verify-downloads 1

使用RVM

rvm use 2.0.0