安装rvm和ruby sudo -i yum groupinstall -y development # or yum groupinstall -y 'development tools' gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 curl -L get.rvm.io | bash -s stable rvm install 2.3.1 # rvm install [version] usermod -aG rvm administrator # usermod -aG rvm [user] 确认group,切换ruby id # uid=502(administrator) gid=502(administrator) groups=502(administrator),5669(rvm) rvm use 2.3.1 ruby -v # ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux] irb # 2.3.1 :001 >(责任编辑:IT) |