分享访问Github速度很慢通用解决方法。

原因分析

1,CDN,中文名内容分发网络,CDN就是解决将数据快速可靠的传递信息给用户的方式。再用户获取数据时,通过CDN对于数据的内容分发,用户可以从更近服务器并且更快的获取想要的信息,从而达到快速访问,并减少源站压力。

分享访问Github速度很慢通用解决方法。

2,为什么访问速度慢、下载慢?

github中的CDN方式被屏蔽了,由于代理商的问题,因此访问速度很慢。ping github.com 时,速度只有300多ms。

3,如何解决?

绕过dns解析,在本地直接进行绑定host,该方法也可加速其他CDN被屏蔽而导致访问慢的网站的问题
Directory of hosts file under windows – > C: \\ windows \\ system32 \\ drivers \\ etc
mac、linux下hosts文件精神所在专业目录—>/etc/hosts

修改hosts文件添加如下内容
#Github
151.101.44.249 github.Global SSL.apace. network
192.30.253.113 github.com
103.245. 222.133 asset CDN.github。 Common domain name format
23.235. 47.133 asset CDN.github。 Common domain name format
203.208.39.104 assets-cdn.github。 Common domain name format
204.232.175.78 documentcloud.github。 Common domain name format
204.232.175.94 gist.github.com
107.21.116.220 help.github.com
207:97.227. 252 nordrode.github。 Common domain name format
199.27.76.130 raw.github.com
107.22.3.110 status.github.com
204.232. 175.78 training.github。 Common domain name format
207.97.227.243 www.github.com
185.31. 16.184 GitHub.Global SSL.apace. network
185.31. 18.133 avatar 0.githubusercontent.com
185.31. 19.133 avatar 1.githubusercontent.com
192.30.253.120 codeload.github。 Common domain name format
windows下刷新DNS的方法:
ipconfig /flushdns
mac下刷新DNS的方法:
lookupd -flushcache
lilux下刷新DNS的方法:
sysv管理服务:
找到 /etc/init.d/nscd重启一下
/etc/init.d/nscd restart
systemd管理服务:
systemctl restart nscd

以上就是关于“访问Github速度很慢通用解决方法”的相关解答,酷盾安全知名云服务商,云服务器用户按需选择内存、数据盘、cup等配置大小,弹性灵活扩容,平滑升级。使用管理更轻松;专业技术团队7×24小时服务支持,售后无忧!

高性价云服务器选购地址:https://www.kdun.com/server/buy.html

本文来自投稿,不代表重蔚自留地立场,如若转载,请注明出处https://www.cwhello.com/416195.html

如有侵犯您的合法权益请发邮件951076433@qq.com联系删除

(0)
夏天夏天订阅用户
上一篇 2024年6月13日 11:08
下一篇 2024年6月13日 11:08

相关推荐

联系我们

QQ:951076433

在线咨询:点击这里给我发消息邮件:951076433@qq.com工作时间:周一至周五,9:30-18:30,节假日休息