只需修改hosts轻松解决github打不开问题
5025
国内由于众所周知的原因,某些时候Github会打不开,下面的方法只需修改hosts轻松解决github打不开的问题。
访问 https://hosts.gitcdn.top/hosts.txt,或将下面全部内容粘贴到你的hosts文件中,即可。
# fetch-github-hosts begin 140.82.114.26 alive.github.com 140.82.114.26 live.github.com 185.199.108.154 github.githubassets.com 140.82.112.21 central.github.com 185.199.108.133 desktop.githubusercontent.com 185.199.108.153 assets-cdn.github.com 185.199.109.133 camo.githubusercontent.com 185.199.109.133 github.map.fastly.net 151.101.229.194 github.global.ssl.fastly.net 13.114.40.48 gist.github.com 185.199.110.153 github.io 13.114.40.48 github.com 192.0.66.2 github.blog 18.179.245.253 api.github.com 185.199.109.133 raw.githubusercontent.com 185.199.108.133 user-images.githubusercontent.com 185.199.109.133 favicons.githubusercontent.com 185.199.110.133 avatars5.githubusercontent.com 185.199.110.133 avatars4.githubusercontent.com 185.199.109.133 avatars3.githubusercontent.com 185.199.109.133 avatars2.githubusercontent.com 185.199.109.133 avatars1.githubusercontent.com 185.199.109.133 avatars0.githubusercontent.com 185.199.110.133 avatars.githubusercontent.com 13.112.159.149 codeload.github.com 52.217.44.188 github-cloud.s3.amazonaws.com 52.217.44.188 github-com.s3.amazonaws.com 52.217.44.188 github-production-release-asset-2e65be.s3.amazonaws.com 52.217.44.180 github-production-user-asset-6210df.s3.amazonaws.com 52.217.44.180 github-production-repository-file-5c1aeb.s3.amazonaws.com 185.199.110.153 githubstatus.com 64.71.144.211 github.community 52.237.112.130 github.dev 140.82.114.22 collector.github.com 13.107.42.16 pipelines.actions.githubusercontent.com 185.199.111.133 media.githubusercontent.com 185.199.111.133 cloud.githubusercontent.com 185.199.108.133 objects.githubusercontent.com # last fetch time: 2022-05-14T14:30:49+08:00 # update url: https://hosts.gitcdn.top/hosts.txt # fetch-github-hosts end
Linux / MacOS hosts路径:/etc/hosts
Windows hosts路径:C:\Windows\System32\drivers\etc\hosts
Unix/Linux:
sed -i "/# fetch-github-hosts begin/Q" /etc/hosts && curl https://hosts.gitcdn.top/hosts.txt >> /etc/hosts
本文网址:https://www.zztuku.com/detail-12024.html
站长图库 - 只需修改hosts轻松解决github打不开问题
申明:如有侵犯,请 联系我们 删除。
您还没有登录,请 登录 后发表评论!
提示:请勿发布广告垃圾评论,否则封号处理!!