GitHub网页无法打开
今天访问了一天GitHub没进去,试了很多方法都不管用,最终找到了下面这种方法可以解决网页无法访问的问题。
操作如下:
1.打开此路径:C:\Windows\System32\drivers\etc
2.将该路径下的hosts文件复制到桌面,用记事本打开
3.将下列代码复制到文本的最下方并保存
# github
# GitHub520 Host Start
140.82.113.26 alive.github.com
140.82.114.5 api.github.com
185.199.110.153 assets-cdn.github.com
185.199.108.133 avatars.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 camo.githubusercontent.com
140.82.112.22 central.github.com
185.199.108.133 cloud.githubusercontent.com
140.82.113.9 codeload.github.com
140.82.113.21 collector.github.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
140.82.114.4 gist.github.com
54.231.132.193 github-cloud.s3.amazonaws.com
52.217.234.145 github-com.s3.amazonaws.com
52.217.130.225 github-production-release-asset-2e65be.s3.amazonaws.com
52.216.170.179 github-production-repository-file-5c1aeb.s3.amazonaws.com
52.216.92.227 github-production-user-asset-6210df.s3.amazonaws.com
192.0.66.2 github.blog
140.82.114.3 github.com
140.82.113.18 github.community
185.199.109.154 github.githubassets.com
151.101.129.194 github.global.ssl.fastly.net
185.199.110.153 github.io
185.199.108.133 github.map.fastly.net
185.199.110.153 githubstatus.com
140.82.113.25 live.github.com
185.199.108.133 media.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
13.107.42.16 pipelines.actions.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
13.107.238.51 vscode.dev
4.将该文件复制到:C:\Windows\System32\drivers\etc,选择替换
5.刷新DNS:按下“Windows+R”键,进入命令提示符界面,输入“ipconfig /flushdns”,按“Enter”键,提示刷新成功。文章来源:https://www.toymoban.com/news/detail-555513.html
再次打开浏览器就可以访问GitHub网站了。文章来源地址https://www.toymoban.com/news/detail-555513.html
到了这里,关于GitHub网页无法打开——最新版的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!