github无法访问解决办法
方法一:
1、打开网站http://tool.chinaz.com/dns/ ,在A类型的查询中输入 github.com,找到最快访问的ip地址,并复制下来。
2、修改hosts文件(C:\Windows\System32\drivers\etc),在文件末尾增加
如果无法保存,可以先将文件拷贝桌面,修改完成后覆盖即可。
20.205.243.166 github.com
3、刷新路由
ipconfig/flushdns
方法二(推荐)
项目无需安装任何程序,通过修改本地 hosts 文件,试图解决:
- GitHub 访问速度慢的问题
- GitHub 项目中的图片显示不出的问题
花 5 分钟时间,让你"爱"上 GitHub。
# GitHub520 Host Start
185.199.108.154 github.githubassets.com
140.82.113.22 central.github.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 github.map.fastly.net
199.232.69.194 github.global.ssl.fastly.net
140.82.113.3 gist.github.com
185.199.108.153 github.io
140.82.114.4 github.com
140.82.112.6 api.github.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars.githubusercontent.com
140.82.113.9 codeload.github.com
52.217.88.28 github-cloud.s3.amazonaws.com
52.216.238.99 github-com.s3.amazonaws.com
52.216.26.252 github-production-release-asset-2e65be.s3.amazonaws.com
52.217.101.68 github-production-user-asset-6210df.s3.amazonaws.com
52.217.48.84 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153 githubstatus.com
64.71.168.201 github.community
185.199.108.133 media.githubusercontent.com
# Update time: 2021-03-16T12:24:16+08:00
# Star me GitHub url: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End