GitHub访问慢如何解决?
修改C:\Windows\System32\drivers\etc\hosts
文件。
在hosts文件中加入一些常见的GitHub地址,如下:
20.205.243.166
140.82.112.3 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
140.82.114.4 http://github.com
199.232.5.194 http://github.global.ssl.fastly.net
192.30.253.112 http://github.com
192.30.253.113 http://github.com
151.101.184.133 http://assets-cdn.github.com
151.101.185.194 http://github.global.ssl.fastly.net
192.30.253.112 http://github.com
192.30.253.113 http://github.com
192.30.253.118 http://gist.github.com
151.101.185.194 http://github.global.ssl.fastly.net
151.101.129.194 http://github.global.ssl.fastly.net
151.101.65.194 http://github.global.ssl.fastly.net
151.101.1.194 http://github.global.ssl.fastly.net
151.101.193.194 http://github.global.ssl.fastly.net
151.101.77.194 http://github.global.ssl.fastly.net
151.101.229.194 http://github.global.ssl.fastly.net
151.101.113.194 http://github.global.ssl.fastly.net
151.101.196.133 http://assets-cdn.github.com
151.101.24.133 http://assets-cdn.github.com
185.199.111.153 http://assets-cdn.github.com
185.199.110.153 http://assets-cdn.github.com
185.199.108.153 http://assets-cdn.github.com
185.199.109.153 http://assets-cdn.github.com
151.101.112.133 http://assets-cdn.github.com
151.101.112.133 http://avatars0.githubusercontent.com
151.101.112.133 http://avatars1.githubusercontent.com
151.101.184.133 http://avatars2.githubusercontent.com
151.101.12.133 http://avatars3.githubusercontent.com
151.101.12.133 http://avatars4.githubusercontent.com
151.101.184.133 http://avatars5.githubusercontent.com
151.101.184.133 http://avatars6.githubusercontent.com
151.101.184.133 http://avatars7.githubusercontent.com
151.101.12.133 http://avatars8.githubusercontent.com
151.101.184.133 http://raw.githubusercontent.com
151.101.112.133 http://gist.githubusercontent.com
151.101.184.133 http://cloud.githubusercontent.com
151.101.112.133 http://camo.githubusercontent.com
52.216.227.168 http://github-cloud.s3.amazonaws.com
192.30.253.112 http://github.com
185.199.108.153 http://assets-cdn.github.com
151.101.185.194 http://github.global.ssl.fastly.net
140.82.113.10 http://codeload.github.com
如果还是访问慢,可能是本地访问的GitHub ip地址不在这里面。
复制域名,查询到对应的IP地址,然后加入到hosts文件中即可。
github.com 20.205.243.166
访问就加快了。