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
相关推荐
穆雄雄2 小时前
备份一下我的 mac mini 的环境变量配置情况
macos
秃然想通13 小时前
mac电脑搭载c、c++环境(基于vs code)
macos
归辞...14 小时前
「iOS」——GCD其他方法详解
macos·ios·cocoa
啊啊啊~~20 小时前
新mac电脑软件安装指南(前端开发用)
macos·node·n·oh my zsh·solarized
lm down20 小时前
ComfyUI中运行Wan 2.1工作流,电影级视频,兼容Mac, Windows
人工智能·macos·ai作画·视频
天安彩20 小时前
mac下 vscode 运行 c++无法弹出窗口
c++·vscode·macos·clang
太阳伞下的阿呆20 小时前
配置Mac/Linux终端启动执行脚本
linux·运维·macos
芦苇Z1 天前
macOS 安装应用软件的三种方式
macos
Digitally1 天前
如何将荣耀手机的照片传输到 Mac
macos·智能手机
Digitally1 天前
如何将 iPhone 备份到 Mac/MacBook
macos·ios·iphone