Bboysoul's Blog

首页 公告 RSS

github博客安装jekyll的RUBY更换源

January 27, 2017 本文有 165 个字 需要花费 1 分钟阅读

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


本站总访问量 本站总访客数