Solve the MAC terminal download error curl: (7) failed to connect to raw.githubusercontent.com port 443: Connection refused

directory

    • a, error source
    • 2, analysis and solve
      • 1, test links
      • 2, query url information
      • 3, configuration, hosts
      • 4, the results

    — error source

    in the download node. Js package management tool, it found that incredibly connect address, the error is as follows:

    2. Analysis and solution

1, test link



after testing, it was found that the connection could not be connected, access was denied.

2, query url information

IP address query in

website: https://githubusercontent.com.ipaddress.com/raw.githubusercontent.com
the query results are as follows:

3. Configure hosts

USES software called SwitchHosts, an open source tool for modifying, managing, and switching multiple hosts schemes.
download address: https://oldj.github.io/SwitchHosts/#cn

Read More: