今晚折騰了一下使用Jekyll +Github搭載自己的博客。基本參考如下兩篇博客即可
當時中間一個步驟出了問題
在安裝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/。使用了一個類似西方媒體網站的主題。