国内aliyun阿里云服务器无法访问GitHub解决方法

把以下代码添加进 /etc/hosts文件里即可

20.205.243.166 github.com
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
199.232.68.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
151.101.76.133 raw.githubusercontent.com
151.101.108.133 raw.githubusercontent.com
151.101.228.133 raw.githubusercontent.com
151.101.128.133 raw.githubusercontent.com
151.101.0.133 raw.githubusercontent.com

同理,腾讯云也是一样的;如果以上的IP有变动的话,可以用https://www.ipaddress.com/来查询最新的IP,然后更新即可

Share

You may also like...

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注