问题描述
- 一直都觉得访问 GitHub 时速度非常慢,刷新一下都要等好久!于是尝试一下能否解决掉...
github.com
assets-cdn.github.com
avatar2.githubusercontent.com
camo.githubusercontent.com
collector.githubapp.com
github.global.ssl.fastly.net
解决
- 尝试修改本地 hosts 文件,绕过 DNS 解析
- Windows:
C:\Windows\System32\drivers\etc
192.30.253.112 github.com
192.30.253.112 www.github.com
151.101.64.133 assets-cdn.github.com
151.101.184.133 github.map.fastly.net
151.101.40.133 avatars0.githubusercontent.com
151.101.40.133 avatars1.githubusercontent.com
151.101.40.133 avatars2.githubusercontent.com
151.101.0.133 camo.githubusercontent.com
34.230.182.100 collector.githubapp.com
151.101.185.194 github.global.ssl.fastly.net
54.231.120.3 github-cloud.s3.amazonaws.com
54.231.120.3 s3-1-w.amazonaws.com
- Linux / Mac:
/etc/hosts
- 刷新 DNS 缓存
- Windows:快捷键
Windows+R
输入 cmd
,执行命令 ipconfig /flushdns
- Linux / Mac:执行命令
sudo /etc/init.d/networking restart