1、打开这个网址:https://www.ipaddress.com/查询IP
2、在搜索框里输入:
github.com
查询到的IP记录下来
3、在搜索框里输入:
github.global.ssl.fastly.net
查询到的IP记录下来
4、在搜索框里输入:
assets-cdn.github.com
查询到的IP记录下来
5、把记录下的IP及域名录入到hosts里如下所示:
hosts路径:
/private/etc/hosts
录入内容:
140.82.113.3 github.com
或
140.82.113.4 github.com
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
151.101.1.194 github.global.ssl.fastly.net
151.101.65.194 github.global.ssl.fastly.net
151.101.129.194 github.global.ssl.fastly.net
151.101.193.194 github.global.ssl.fastly.net
6、当github访问慢的时候就重复1至5步骤重新操作一遍