⽆法登⼊github⽹站解决⽅案⽆法登⼊github⽹站解决⽅案
第⼀步:复制以下内容
# GitHub520 Host Start
140.82.114.25 alive.github
140.82.113.26 live.github
185.199.108.154 github.githubassets
140.82.113.22 central.github
185.199.108.133 desktop.githubusercontent
185.199.108.153 assets-cdn.github
185.199.108.133 camo.githubusercontent
185.199.108.133 github.map.fastly
199.232.69.194 github.global.ssl.fastly
140.82.114.4 gist.github
185.199.108.153 github.io
140.82.114.4 github
github制作个人网站192.0.66.2 github.blog
140.82.113.6 api.github
185.199.108.133 raw.githubusercontent
185.199.108.133 user-images.githubusercontent
185.199.108.133 favicons.githubusercontent
185.199.108.133 avatars5.githubusercontent
185.199.108.133 avatars4.githubusercontent
185.199.108.133 avatars3.githubusercontent
185.199.108.133 avatars2.githubusercontent
185.199.108.133 avatars1.githubusercontent
185.199.108.133 avatars0.githubusercontent
185.199.108.133 avatars.githubusercontent
140.82.114.9 codeload.github
52.217.199.161 github-cloud.s3.amazonaws
52.217.102.36 github-com.s3.amazonaws
54.231.197.233 github-production-release-asset-2e65be.s3.amazonaws
54.231.201.49 github-production-user-asset-6210df.s3.amazonaws
52.217.227.161 github-production-repository-file-5c1aeb.s3.amazonaws
185.199.108.153 githubstatus
64.71.144.202 githubmunity
23.100.27.125 github.dev
185.199.108.133 media.githubusercontent
185.199.108.133 cloud.githubusercontent
185.199.108.133 objects.githubusercontent
# Update time: 2022-02-16T22:05:32+08:00
# Update url: raw.hellogithub/hosts
# Star me: github/521xueweihan/GitHub520
# GitHub520 Host End
数据更新时间:2022-02-16T22:05:32+08:00
第⼆步: 修改 hosts ⽂件
hosts ⽂件在每个系统的位置不⼀,详情如下:
Windows 系统:C:\Windows\System32\drivers\etc\hosts
Linux 系统:/etc/hosts
Mac(苹果电脑)系统:/etc/hosts
Android(安卓)系统:/system/etc/hosts
iPhone(iOS)系统:/etc/hosts
修改⽅法,把第⼀步的内容复制到⽂本末尾:
Windows 使⽤记事本。
Linux、Mac 使⽤ Root 权限:sudo vi /etc/hosts。
iPhone、iPad 须越狱、Android 必须要 root。
2.1.2 激活⽣效
⼤部分情况下是直接⽣效,如未⽣效可尝试下⾯的办法,刷新 DNS:
Windows:在 CMD 窗⼝输⼊:ipconfig /flushdns
Linux 命令:sudo nscd restart,如报错则须安装:sudo apt install nscd 或 sudo /etc/init.d/nscd restart Mac 命令:sudo killall -HUP mDNSResponder
Tips:上述⽅法⽆效可以尝试重启机器。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论