查看gem源
gem sources -l
换添加源
gem sources --add https://gems.ruby-china.com/
删除原来的rubygems源
gem sources --remove https://rubygems.org/
查看gem源
gem sources -l
换添加源
gem sources --add https://gems.ruby-china.com/
删除原来的rubygems源
gem sources --remove https://rubygems.org/
转载于:https://www.cnblogs.com/yulongzhou/p/10256550.html