git - jekyll本地环境搭建(Windows) gem install jekyll
迷茫
迷茫 2017-05-02 09:24:45
0
2
568

在本地搭建 jekyll 环境

安装了 ruby

$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]

在更新的时候报错 已经翻墙了

$ gem update --system
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNABORTED: An established connection was aborted by the software in your host machine. - SSL_connect (https://api.rubygems.org/specs.4.8.gz)

安装 jekyll

$ gem install jekyll
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNABORTED: An established connection was aborted by the software in your host machine. - SSL_connect (https://api.rubygems.org/quick/Marshal.4.8/jekyll-2.5.3.gemspec.rz)

有大神可以指导一下 问题吗 ?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
巴扎黑

FetchError is obviously a connection error, just use a domestic mirror source

In the user home directory, Linux is ~, Windows is C:UsersUSERNAME (it may also be Administrator or ProgramData) Create a new .gemrc file below and try writing the following content:

:sources:
- https://ruby.taobao.org
:update_sources: true
仅有的幸福

Because of circumventing the firewall (using HTTP proxy), if you use HTTP代理,HTTPsthe connection will fail.
Because HTTPS comes with server verification, and the proxy forwarding data involves HTTP layer data, the proxy service does not have the private key of the website, so it cannot decode the data in the HTTP header. (Actually, the initial certification failed)

The solution is:
1. Add a certificate to the proxy server (it seems unsafe, and the proxy server may not have one)
2. Use socket proxy socket代理
3、不要翻墙了,改用国内的源吧 gem source3. Don’t circumvent the wall, use Domestic source bar gem source (this is the most reliable)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!