问题描述

GitHub网页最近突然访问不了,打开速度很慢,如何解决?

问题分析

对于GitHub网页打开速度很慢的问题,有如下原因,常用,可能

  • 网络本来速度慢(不太可能)
  • DNS解析配置导致
  • hosts域名ip解析配置导致
  • 网络带宽过大(不常见)

一般常见的原因是DNShosts的问题

网络问题这个很容易判断是不是

问题解决

参看 Windows | Hosts | windows hosts简介

修改hosts,添加如下 GitHub域名ip映射表

# github start
# Github Hosts
# Update 20210312
140.82.112.3 github.com
140.82.112.10 nodeload.github.com
140.82.114.6 api.github.com
13.229.189.0 codeload.github.com
185.199.110.133 raw.github.com
185.199.110.153 training.github.com
185.199.110.153 assets-cdn.github.com
185.199.110.153 documentcloud.github.com
185.199.110.154 help.github.com
185.199.110.153 githubstatus.com
199.232.69.194 github.global.ssl.fastly.net
185.199.110.133 raw.githubusercontent.com
185.199.110.133 cloud.githubusercontent.com
185.199.110.133 gist.githubusercontent.com
185.199.110.133 marketplace-screenshots.githubusercontent.com
185.199.110.133 repository-images.githubusercontent.com
185.199.110.133 user-images.githubusercontent.com
185.199.110.133 desktop.githubusercontent.com
185.199.110.133 avatars.githubusercontent.com
185.199.110.133 avatars0.githubusercontent.com
185.199.110.133 avatars1.githubusercontent.com
185.199.110.133 avatars2.githubusercontent.com
185.199.110.133 avatars3.githubusercontent.com
185.199.110.133 avatars4.githubusercontent.com
185.199.110.133 avatars5.githubusercontent.com
185.199.110.133 avatars6.githubusercontent.com
185.199.110.133 avatars7.githubusercontent.com
185.199.110.133 avatars8.githubusercontent.com
# End of the section
#192.30.255.112  github.com git 
#185.31.16.184 github.global.ssl.fastly.net
#140.82.114.4 github.com
#140.82.114.4 gist.github.com
#185.199.108.153 assets-cdn.github.com
#151.101.64.133 raw.githubusercontent.com
#151.101.108.133 gist.githubusercontent.com
#151.101.108.133 cloud.githubusercontent.com
#151.101.108.133 camo.githubusercontent.com
#151.101.108.133 avatars0.githubusercontent.com
#151.101.108.133 avatars1.githubusercontent.com
#151.101.108.133 avatars2.githubusercontent.com
#151.101.108.133 avatars3.githubusercontent.com
#151.101.108.133 avatars4.githubusercontent.com
#151.101.108.133 avatars5.githubusercontent.com
#151.101.108.133 avatars6.githubusercontent.com
#151.101.108.133 avatars7.githubusercontent.com
#151.101.108.133 avatars8.githubusercontent.com 

一般来说,如果是hosts配置原因,添加上述的代码,是没有问题的

如果还是不行,考虑是否是DNS配置导致,更换更快的DNS

( 使用ping简单查看DNS速度 )

over....

相关文章

猜你想看


nathannie
15 声望1 粉丝

better and better, day by day.