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

I. Introduction

Github personal blog encountered problems in the construction.

2. Problem description

Problem code:

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

Three. Solution

Through the IPAddress.com homepage, enter raw.githubusercontent.com to find the real IP address:

  1. Windows system:
    hosts file path:
    c:/windows/system32/drivers/etc/
    Additional content:
    199.232.68.133 raw.githubusercontent.com
    After changing and saving in the administrator mode, restart the computer.
  2. Mac OS system:
    Open the terminal (Terminal), the default location is the launcher -> Others ->
    Terminal Enter the following command in the terminal:
    sudo vi /etc/hosts
    i 修改
    Also append content at the end:
    199.232.68.133 raw.githubusercontent.com
    :wq
    OK.

Guess you like

Origin blog.csdn.net/Robot_Starscream/article/details/106343161
Recommended