完美解决github访问速度慢

2022年05月22日12:02:21 发表评论 热度562 ℃

相信绝大多数的家人们都遇到过一个问题,那就是访问github的时候非常非常慢,有时甚至直接无法访问。其实这时候可能并不是github.com域名被限制了,而是github.global.ssl.fastly.net这个域名被限制了。

完美解决github访问速度慢

解决办法:

1、增加github.global.ssl.fastly.net和github.com的映射

打开https://www.ipaddress.com/网站,在下方输入框中输入github.global.ssl.fastly.net,或者直接访问https://ipaddress.com/website/github.global.ssl.fastly.net

完美解决github访问速度慢

查询它的IP地址

完美解决github访问速度慢

图中我们可以看到IP地址是:199.232.69.194

再获取github的地址,或者访问https://ipaddress.com/website/github.com

完美解决github访问速度慢

得到地址140.82.112.4

2、修改本地hosts文件

windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts

mac/linux系统的hosts文件的位置如下:/etc/hosts

然后直接把:140.82.112.4 github.com 和 199.232.69.194 github.global.ssl.fastly.net复制进去。

完美解决github访问速度慢

保存文件并关闭,然后再打开github看看吧。

瓜皮猪

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: