【总结】Jekyll搭建博客

来源:互联网 发布:图书数据加工人员 编辑:程序博客网 时间:2024/05/16 06:05

今晚折腾了一下使用Jekyll +Github搭载自己的博客。基本参考如下两篇博客即可

  1. 参考博客1
  2. 参考博客2


当时中间一个步骤出了问题

在安装jekyll时,输入 gem install jekyll出现以下bug

Unable to download data from https://rubygems.org/ Errno::ETIMEDOUT:
 A connection attempt failed because the connected party did not properly respon
d after a period of time, or established connection failed because connected hos
t has failed to respond. - connect(2) (https://rubygems.org/latest_specs.4.8.gz)


最终发现问题出现在天朝的网络

在这里找到了解决方法  http://ruby.taobao.org/

如该网页中解释的

我执行了以下命令即解决了问题

$ gem sources --remove https://rubygems.org/$ gem sources -a https://ruby.taobao.org/$ gem sources -l*** CURRENT SOURCES ***https://ruby.taobao.org# 请确保只有 ruby.taobao.org$ gem install rails

最后附上我的博客地址:leaking.github.io/。使用了一个类似西方媒体网站的主题。




1 0
原创粉丝点击