centos7 Ruby環境變量配置


ruby安裝參考博客:https://blog.csdn.net/yelllowcong/article/details/78362370  (Redis之集群redis-trib.rb環境的搭建-yellowcong)

vi /etc/profile      修改環境變量,添加紅色部分:

for i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; do
    if [ -r "$i" ]; then
        if [ "${-#*i}" != "$-" ]; then
            . "$i"
        else
            . "$i" >/dev/null
        fi
    fi
done
 export RUBY_BIN=/usr/local/ruby-2.4.2/bin export PATH=$PATH:$RUBY_BIN

source /etc/profile       重新生效環境變量


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM