访问Github速度很慢通用解决方法 - 苹果cms模板大全
  1. 苹果cms模板大全 > 流量运营 >

访问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

这篇流量运营《访问Github速度很慢通用解决方法》,目前已阅读次,本文来源于酷盾,在2024-04-03发布,该文旨在普及网站运营知识,如果你有任何疑问,请通过网站底部联系方式与我们取得联系

  • 上一篇:Jenkins插件依赖错误解决方法
  • 下一篇:网站栏目页seo优化应该怎么做好