Centos搭建Ruby环境

2016-11-29 19:19:43来源:CSDN作者:moyummy人点击

安装rvm和ruby

sudo -iyum groupinstall -y development # or yum groupinstall -y 'development tools'gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3curl -L get.rvm.io | bash -s stablervm install 2.3.1 # rvm install [version]usermod -aG rvm administrator # usermod -aG rvm [user]

确认group,切换ruby

id # uid=502(administrator) gid=502(administrator) groups=502(administrator),5669(rvm)rvm use 2.3.1ruby -v # ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]irb # 2.3.1 :001 > 

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台