加速Github访问速度, 解决头像,图片无法加载
2019-12-26 本文已影响0人
没有时间机器
编辑 hosts
文件, 加入以下地址直接解析域名
windows路径为
C:\windows\System32\drivers\etc
mac路径为/etc/hosts
# github
151.101.185.194 github.global.ssl.fastly.net
192.30.255.113 github.com
192.30.253.120 codeload.github.com
34.232.39.137 collector.githubapp.com
192.30.253.116 api.github.com
151.101.24.133 camo.githubusercontent.com
151.101.24.133 assets-cdn.github.com
151.101.72.133 avatars0.githubusercontent.com
151.101.72.133 avatars1.githubusercontent.com
151.101.72.133 avatars2.githubusercontent.com
151.101.72.133 avatars3.githubusercontent.com
151.101.72.133 avatars4.githubusercontent.com
151.101.72.133 avatars5.githubusercontent.com
151.101.72.133 avatars6.githubusercontent.com
151.101.72.133 avatars7.githubusercontent.com
151.101.72.133 avatars8.githubusercontent.com
Mac系统 命令行下重启 DNS
服务
sudo killall -HUP mDNSResponder
Windows 命令行下重启 DNS
服务
ipconfig /flushdns