解决curl: (7) Failed to connect to raw.githubusercontent.com port 443

解决办法:

一、首先查询域名 raw.githubusercontent.com对应的ip地址

        去这网址查询:https://tools.ipip.net/domain.php

 

解决curl: (7) Failed to connect to raw.githubusercontent.com port 443_第1张图片二、修改hosts文件

linux系统一般都在/etc/hosts

vi /etc/hosts

在hosts文件最下面添加一行

151.101.108.133 raw.githubusercontent.com

最后保存即可。

你可能感兴趣的:(其他,linux,ubuntu,centos,Failed,github)