与
ESC
输入关键词搜索文章

加速访问GitHub速度慢

全文约 249 字预计阅读 1 分钟
今天访问github巨慢无比,发现连ping都不通了。 C:\Users\Administrator>ping www.github.com -t 正在 Ping github.com [13.229.188.59] 具有 32 字节的数据: 请求超时。 请求超时。 请求超时。 dns给我分配了一个访问新加坡服务器的ip,这时候就需要更换访问GitHub服务器ip,那么那个快呢? 访问:http://tool.chinaz.com/dns?type=1&host=github.com&ip= 记录:TTL值比较小的那个地址 访问:https://github.com.ipaddress.com/ 记录:IP Address的地址 以上方式选一个,搜索系统盘中的host文件,修改指定固定ip地址。 这里以windows为例,一般为C:\Windows\System32\drivers\etc\hosts,在文件后面添加以下内容。 140.82.112.3 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 199.232.69.194 github.global.ssl.fastly.net 保存,运行cmd,执行ipconfig /flushdns刷新dns缓存,再试试看。
分享

发表评论

评论 0 条

暂无评论,来说点什么吧。