错误信息:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
目前,我解决的方法是:
1.通过
https://www.ipaddress.com
查询
raw.githubusercontent.com
对应ip地址,如图所示:
2. 修改host文件,打开访达,shift+command+g 弹出 前往文件夹: 输入 /etc/hosts ,找到 hosts 文件。该文件在etc目录下无法直接修改,需要拷贝到桌面修改完成后,重新拖回etc中,替换源文件,需要将以下内容放入hosts中:
199.232.68.133 raw.githubusercontent.com
199.232.68.133 user-images.githubusercontent.com
199