centos 7 默认安装ruby版本为2.0.0 升级 至2.1.0以上版本
操作如下:[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 下图为安装