CentOS下通过代理安装rails

[yourserver]# gem install rails -y --p http://youproxy:port

或则

[yourserver]# export http_proxy=http://youproxy:port
[yourserver]# source /root/.bash_profile
[yourserver]# gem install rails -y

参见: http://docs.rubygems.org/read/book/2

你可能感兴趣的:(centos,bash,Rails,rubygems)