很多小伙伴日常会遇到GitHub访问不了的问题,百度教程又是各种复杂的教程,今天介绍一下如何解决GitHub访问不了,轻轻松松复制粘贴即可:
首先,你需要复制以下内容:
# GitHub520 Host Start 185.199.108.154 github。GitHub assets.com 140.82.114.21 central.HTTP: Github.com 185.199.108.133 desktop.GITHUB content.com 185.199.108.153 asset CDN.HTTP: Github.com 185.199.108.133.GITHUB content.com 185.199.108.133 github.Map, come on.net 199.232.69.194 Github.global.ssl。fastly.net 140.82.113.4 gist.github.com 185.199.108.153 github.io 140.82.114.3 github.com 140.82.113.5 api.github.com 185.199.108.133 raw.GITHUB content.com 185.199.108.133 user-images.GITHUB content.com 185.199.108.133 favicons.GITHUB content.com 185.199.108.133 avatars5.GITHUB content.com 185.199.108.133 avatars4.GITHUB content.com 185.199.108.133 avatars3.GITHUB content.com 185.199.108.133 avatars2.GITHUB content.com 185.199.108.133 avatars1.GITHUB content.com 185.199.108.133 avatars0.GITHUB content.com 185.199.108.133 avatars.GITHUB content.com 140.82.113.10 codeload.HTTP: Github.com 52.216.226.40 github-cloud。S3.com 52.216.162.99 github-com.S3.com 52.216.142.196 github-production-release-asset-2e65be。S3.com 52.217.97.236 github-production-user-asset-6210df。S3.com 52.217.194.41 GITHUB-PRODUCTION-REPOSITORY-FILE-5C1AEB.S3.com GITHUB status185.199.108.153.com 64.71.168.201 github.community 185.199.108.133 media.GITHUB content.com Update time: 2021-03-24t16:06:33 + 08:00 Star me GITHUB URL: HTTPS: GITHUB.With / 521 Xue Weihan / github520 # GitHub520 Host End
接下来,你需要修改 hosts 文件,它会因系统而异
视窗:C:\Windows\System32\ETC\Hosts
Linux 系统:/etc/hosts
Mac系统:/ etc / hosts
Android系统:/system/etc/hosts
Iphone (ios)系统:/etc/hosts
修改教学方法,把第一步的内容进行复制到文本信息末尾:
Windows 用记事本。
Use the root directory: sudo VI / etc / host.
IPhone、iPad必须越狱,Android必须root。
正常工作下是可直接通过生效的,若未及时生效可尝试,刷新 DNS:
Windows: something cmd something something something: ipconfigflushns Linux 命令:sudo rcnscd restart
如果你的Github在访问时也出现图裂、或者进行加载速度缓慢等问题,不妨可以试试。520: github.
以上就是关于“轻松解决GitHub访问不了的问题”的相关解答,若有不清楚的可以咨询酷番云,酷番云作为云南为数不错持有ICP/ISP/IDC等资质专业云计算提供商之一,成本控制良好,提供各类云服务器产品及ICP备案一站式服务,操作简单快捷,7*24小时不间断售后运维技术支持。
产品选购地址: