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
相关推荐
2501_922232943 小时前
Mac电脑 系统监测工具 System Dashboard Pro
macos
大猩猩爱分享12 小时前
Mac安装docker desktop
macos·docker
伊织code12 小时前
pmset - 控制 macOS 系统电源、睡眠、唤醒与节能
macos·命令·电源·睡眠·节能·唤醒·pmset
serve the people13 小时前
在mac上安装sh脚本文件
macos
莫邪博客13 小时前
解决蓝牙MAC 地址倒序问题
macos
草明13 小时前
macOS 查看当前命令行的ruby的安装目录
开发语言·macos·ruby
前端 贾公子1 天前
「混合开发」H5与原生App交互流程方案全面解析
macos·objective-c·cocoa
I烟雨云渊T1 天前
2025年的WWDC所更新的内容
macos·ios·wwdc
Fatbobman(东坡肘子)1 天前
WWDC 2025 开发者特辑 | 肘子的 Swift 周报 #088
开发语言·macos·ios·swiftui·ai编程·swift·wwdc