• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

超级飞燕

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

解决GitHub访问不到的问题

解决GitHub访问不到的问题 解决GitHub访问不到的问题 确定GitHub官网的IP地址 确定域名IP地址 确定静态资源IP地址 找到最快的节点

解决GitHub访问不到的问题

  1. 确定GitHub官网的IP地址 打开网站查看:http://github.com.ipaddress.com/

Snipaste_2022-03-21_00-04-38.png

  1. 确定域名IP地址 点击网站查看:http://github.global.ssl.fastly.net.ipaddress.com/

Snipaste_2022-03-21_00-05-29.png

  1. 确定静态资源IP地址 单击查看:

http://assets-cdn.github.com.ipaddress.com/

Snipaste_2022-03-21_00-06-26.png

确定好之后,就可以修改hosts文件了,文件地址为:C:\Windows\System32\drivers\etc\hosts

在空白行的位置填写下图内容:在相应IP位置改成你的IP,修改保存即可。

# GitHub
15.164.81.167 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com

如果还是访问不到

找到最快的节点

http://ping.chinaz.com/github.com

Snipaste_2022-03-21_00-08-21.png

把GitHub最快的ip复制到C:\Windows\System32\drivers\etc\的hosts文件中

15.164.81.167 github.com

posted on 2022-03-21 00:21  超级飞燕  阅读(533)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3