gem sources
#查看目前的源
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
再执行 gem install rails
转载于:https://www.cnblogs.com/igloo1986/p/4612584.html