首先查看当前有哪些源gem sources -l以防后续需要先备份一下这些源,然后把他们删除gem sources --remove 源地址最后添加淘宝源gem sources -a http://ruby.taobao.org/