「 Hexo 」curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

一.前言

Github个人博客在搭建遇到问题。

二.问题描述

问题代码:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

三.解决办法

通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址:

  1. Windows系统:
    hosts文件路径:
    c:/windows/system32/drivers/etc/
    追加内容:
    199.232.68.133 raw.githubusercontent.com
    用管理员模式改完保存,重启电脑即可。
  2. Mac OS 系统:
    打开终端(Terminal),默认位置在 启动台–>其他–>终端
    在终端输入以下命令:
    sudo vi /etc/hosts
    i 修改
    同样在尾部追加内容:
    199.232.68.133 raw.githubusercontent.com
    :wq
    即可。

猜你喜欢

转载自blog.csdn.net/Robot_Starscream/article/details/106343161