github博客安装jekyll的RUBY更换源

ruby的源因为某些原因在中国很慢,所以chinese program要更换一下源下面是更换源的方法首先去掉原来的官方源
gem sources -r https://rubygems.org/
然后是添加我们马云的源
gem sources -a https://ruby.taobao.org/
然后检查一下源有没有添加进去
gem sources -l
之后安装jekyll
sudo gem install jekyll
注意要有root权限
注:taobao gems 源已经停止维护,现在由ruby-china提供镜像服务
gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
gem sources -l
https://gems.ruby-china.org

    原文作者:bboysoul
    原文地址: https://www.jianshu.com/p/73482c2f577c
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞