GitHub访问速度慢的解决方法

从GitHub上拉取代码速度十分之慢,百度了一下,说是github的某些域名的dns解析被污染了。

  解决方法:

  1、vpn

  2、绕过dns解析,在本地直接绑定host。打开dns查询工具网站http://tool.chinaz.com/dns 查询域名github.global.ssl.fastly.NET解析获取其IP.(或者访问http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo获取cdn域名以及地址)

  3、在C:\Windows\System32\drivers\etc\hosts文件中加入 151.101.88.249 github.global.ssl.fastly.Net

猜你喜欢

转载自www.cnblogs.com/gaodaoheng/p/9228015.html
今日推荐