centos 7 默認安裝ruby版本爲2.0.0 升級 至2.1.0以上版本centos
操做以下:ruby
[root@localhost~]# gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
[root@localhost ~]# curl -sSL https://get.rvm.io | bash -s stable [root@localhost ~]# find / -name rvm -print /usr/local/rvm /usr/local/rvm/src/rvm /usr/local/rvm/src/rvm/bin/rvm /usr/local/rvm/src/rvm/lib/rvm /usr/local/rvm/src/rvm/scripts/rvm /usr/local/rvm/bin/rvm /usr/local/rvm/lib/rvm /usr/local/rvm/scripts/rvm [root@localhost ~]# source /usr/local/rvm/scripts/rvm #檢查ruby版本 [root@localhost ~]# rvm list known [root@localhost ~]# rvm install 2.1.1 #安裝新版本ruby 下圖爲安裝