只需修改hosts轻松解决github打不开问题

分类:建站教程 时间:2024-12-22 18:53 浏览:0 评论:0
0

国内由于众所周知的原因,某些时候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


1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 建站教程 > 只需修改hosts轻松解决github打不开问题

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }