gem sources
#查看目前的源
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
再执行 gem install rails
gem sources
#查看目前的源
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
再执行 gem install rails