curl -sSL https://get.rvm.io | bash
/usr/local/rvm/bin/rvm install 1.9.3
vim /etc/profile
添加一行
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
source /etc/profile
type rvm | head -1
rvm use 1.9.3
ruby -v
原文链接:https://www.f2er.com/centos/380195.html