MAC无法 ping 通github 系列主页

检索能够解析github.com的ip

https://tool.chinaz.com/speedworld/github.com

从列表中选总解析时间最快的ip地址:

复制ip地址作为github.com路由转发表

shell 复制代码
sudo vim /etc/hosts
shell 复制代码
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
20.200.245.247 github.com

输入:q!保存后退出编辑器;

刷新DNS,键入以下命令

shell 复制代码
dscacheutil -flushcache
相关推荐
Frag0ut1 小时前
开源下载管理器MDM下载获取与实操指南:IDM的上位替代
windows·macos·mdm·下载管理器·断点续传·开源下载工具·idm替代
独隅11 小时前
RustRover MacOS 安装与实战效能全评测
macos·jetbrains·rustrover
陈工大模型2 天前
MacOS 跨平台压缩包处理:从编码痛点到工程化落地的完整方案
windows·macos·缓存·电脑·策略模式·c盘清理
fzlzjerry3 天前
我为什么自己写了一个原生 macOS 截图录屏工具:0 唤醒菜单栏架构与端侧 OCR 内存降 4 倍
macos
晚霞的不甘3 天前
Flutter/OpenHarmony 三方库适配实战:google_maps_flutter 地图
flutter·macos·华为·cocoa·harmonyos·1024程序员节
RobinDevNotes8 天前
24GB Mac 做数字人:声音放本地,画面租云端
人工智能·python·macos·开发工具
oil欧哟10 天前
Oil Studio 的产品思路与日常使用方式:在 Mac 上录口播演示,并接入 AI Agent 精剪与自动录屏
人工智能·macos
小毛球.11 天前
第 3 篇:IDEA 最新版下载与完整安装教程(Mac)
java·macos·intellij-idea·idea
CodeClimb13 天前
Mac 磁盘无法推出(DMG外接盘)排查处理教程
macos
Karl_fang13 天前
🥳 再也不用拿起手机抄验证码!我做了一个 Android → Mac 的「验证码接力」工具
前端·macos·ai编程