安裝rvm和ruby
sudo -iyum groupinstall -y development # or yum groupinstall -y 'development tools'gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3curl -L get.rvm.io | bash -s stablervm 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.1ruby -v # ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]irb # 2.3.1 :001 >
http://xxxxxx/Linuxjc/1184775.html TechArticle