硬汉嵌入式论坛

 找回密码
 立即注册
查看: 1323|回复: 0
收起左侧

github突然打不开了,解决办法有效

[复制链接]

747

主题

1049

回帖

3295

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3295
发表于 2021-3-18 21:01:41 | 显示全部楼层 |阅读模式


转摘: https://segmentfault.com/a/1190000037498373

  • 最近发现github突然打不开了。经过一番搜索,终于找到一个改host的方法使得可以正常打开github,而且发现打开速度比之前还快。大家也可以试试。
  • C:\Windows\System32\drivers\etc中打开hosts文件(可以用UE等编辑工具打开),在该文件中添加如下内容。
# GitHub Start 140.82.114.4 github.com140.82.114.4 gist.github.com185.199.108.153 assets-cdn.github.com151.101.64.133 raw.githubusercontent.com151.101.108.133 gist.githubusercontent.com151.101.108.133 cloud.githubusercontent.com151.101.108.133 camo.githubusercontent.com151.101.108.133 avatars0.githubusercontent.com151.101.108.133 avatars1.githubusercontent.com151.101.108.133 avatars2.githubusercontent.com151.101.108.133 avatars3.githubusercontent.com151.101.108.133 avatars4.githubusercontent.com151.101.108.133 avatars5.githubusercontent.com151.101.108.133 avatars6.githubusercontent.com151.101.108.133 avatars7.githubusercontent.com151.101.108.133 avatars8.githubusercontent.com # GitHub End
  • 保存文件,重新刷新网页即可打开github了。
  • github打开慢的同学,也可以试试这个方法。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-4-24 16:42 , Processed in 0.166572 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表