当前位置:   article > 正文

windows系统下解决github访问速度过慢_windows github加速

windows github加速

windows系统下解决github访问速度过慢

最近用github的时候,发现速度很慢(以前也有,太懒了没解决),最近实在受不了了,就在网上找办法解决了一下,过程记录一下,仅供参考。
请添加图片描述


查询IP

Dns检测|Dns查询 - 站长工具 (chinaz.com)在该网站输入github.com,找到TLL最小的IP地址

请添加图片描述

修改hosts文件

在windows系统下找到以下路径

C:\Windows\System32\drivers\etc
  • 1

找到hosts文件,添加以下内容后保存。

ip地址 github.com
eg:52.69.186.44 github.com
  • 1
  • 2

保存hosts,断开网络链接,然后重新联网,打开github主页,如果打开正常,ok了。或者使用以下命令刷新DNS缓存。

ipconfig /flushdns
  • 1

弄到这里的话,基本上就可以正常访问github了。

出现问题

如果还是出现登录出现页面布局混乱或者超时,可以使用HOSTS加速对Github网站加载的资源网站域名解析。

在hosts中添加以下代码

# GitHub Start
192.30.253.112 github.com  #这里的ip就是之前查的的IP地址
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
151.101.100.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com
# GitHub End

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

参考链接:

GitHub上不去怎么办?(登录超时网页显示不全)_龙性的腾飞的博客-CSDN博客_github进不去

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/794975
推荐阅读
相关标签
  

闽ICP备14008679号