MacOS 无法ping 通 github.com 解决方案

2022-04-24  本文已影响0人  AsaGuo
  1. 询github的IP
    https://github.com.ipaddress.com
  2. 打开终端,运行:
sudo vim /private/etc/hosts
  1. 按 i 进入编辑模式,末尾加入以下映射域名:
140.82.112.4 github.com
  1. 按esc, 输入 “:wq” 保存退出,重新打开终端,再次输入 “ping github.com”, 即可ping 通
上一篇 下一篇

猜你喜欢

热点阅读