Centos7 安装ruby环境,并升级至 v2.4
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
系统环境:Centos7.2 x64 Minimal-1511
1、安装基本工具
[root@localhost ~]# yum -y install ruby ruby-devel rubygems rpm-build
2、查看当前版本
[root@localhost ~]# ruby -v
效果:
ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
3、安装yum源
[root@localhost ~]# yum install -y centos-release-scl-rh
4、安装指定版本的ruby
[root@localhost ~]# yum install -y rh-ruby24
5、使升级后的配置生效
scl enable rh-ruby24 bash
6、查看当前ruby版本
[root@localhost ~]# ruby -v
效果:
ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-linux]
至此 ruby 升级至 v2.4 完毕




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)