【centos7 Ruby环境变量配置】教程文章相关的互联网学习教程文章

centos7 Ruby环境变量配置【代码】

vi /etc/profile 修改环境变量,添加红色部分:for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; doif [ -r "$i" ]; thenif [ "${-#*i}" != "$-" ]; then. "$i"else. "$i" >/dev/nullfifi doneexport RUBY_BIN=/usr/local/ruby-2.4.2/bin export PATH=$PATH:$RUBY_BINsource /etc/profile 重新生效环境变量原文:https://www.cnblogs.com/zhuwenjoyce/p/10653160.html

linux系统centOS7下搭建redis集群中ruby版本过低问题的解决方法

问题描述: 在Centos7中,通过yum安装ruby的版本是2.0.0,但是如果有些应用需要高版本的ruby环境,比如2.2,2.3,2.4...那就有点麻烦了,譬如:我准备使用redis官方给的工具:redis-trib.rb 这个工具构建redis集群的时候,报错了:“redis requires Ruby version >= 2.2.2” 解决方法(已经尝试,没有问题) 1,首先系统需要安装redis,毕竟是搭建redis集群,如果没有安装redis,请先执行(如果安装了,请略过...