Hexo报错

今天在使用hexo博客运行 hexo d 出现报错

1
OpenSSL SSL_connect: Connection was reset in connection to github.com:443

查询了很多方案后,发现是代理的问题,如果你使用了VPN,需要设置一下http.proxy,先查看端口号

image-20210317125154852

我的端口号是2802,设置http.proxy

1
2
git config --global http.proxy 127.0.0.1:2802
git config --global https.proxy 127.0.0.1:2802

如果之前已经有过设置,先取消

1
2
git config --global --unset http.proxy
git config --global --unset https.proxy

设置好之后再hexo d,部署成功

附上我的报错和解决截图

image-20210317125426084


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!