当前位置: 首页 > article >正文

mac执行brew services list时,无法连接GitHub

==> Tapping homebrew/services
Cloning into ‘/opt/homebrew/Library/Taps/homebrew/homebrew-services’…
fatal: unable to access ‘https://github.com/Homebrew/homebrew-services/’: Failed to connect to github.com port 443 after 75018 ms: Couldn’t connect to server
Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-services /opt/homebrew/Library/Taps/homebrew/homebrew-services --origin=origin --template= --config core.fsmonitor=false exited with 128.
Error: Failure while executing; /opt/homebrew/bin/brew tap homebrew/services exited with 1.

在终端中ping github.com也一直超时.

方法: 访问https://www.ipaddress.com
右上角输入github.com
在这里插入图片描述
A RECORDS下的IP显示为140.82.112.3
打开mac的终端

sudo vi /etc/hosts

在最下面一行添加
在这里插入图片描述
i进入编辑模式,esc退出,:wq保存
然后重启终端,再ping就通了.


http://www.kler.cn/a/531045.html

相关文章:

  • 【腾讯前端面试】纯css画图形
  • vim如何解决‘’文件非法关闭后,遗留交换文件‘’的问题
  • 成绩案例demo
  • 实现使用K210单片机进行猫脸检测,并在检测到猫脸覆盖屏幕50%以上时执行特定操作
  • 2181、合并零之间的节点
  • 计算机毕业设计Python动漫推荐系统 漫画推荐系统 动漫视频推荐系统 机器学习 bilibili动漫爬虫 数据可视化 数据分析 大数据毕业设计
  • 谷歌Titans模型论文解析,Transformer迎来变革拐点——DeepSeek能否“接招”?
  • 七. Redis 当中 Jedis 的详细刨析与使用
  • 【自开发工具介绍】SQLSERVER的ImpDp和ExpDp工具03
  • 【建站】专栏目录
  • 51c视觉~CV~合集10
  • Windows图形界面(GUI)-QT-C/C++ - QT Stacked Widget
  • 运维自动化工具集:构建高效运维体系的密钥
  • 浏览器模块化难题
  • 解决vscode扩展插件开发webview中的请求跨域问题
  • 【前端】ES6模块化
  • 大模型综合性能考题汇总
  • 【PyQt】keyPressEvent键盘按压事件无响应
  • 单行函数与聚合函数
  • Windows 安装Linux子系统
  • Autosar CP RTE规范解读之RTE与VFB以及RTE API关系解析
  • 【机器学习篇】K-Means 算法详解:从理论到实践的全面解析
  • 高阶开发基础——快速入门C++并发编程3
  • 掌握 HTML5 多媒体标签:如何在所有浏览器中顺利嵌入视频与音频
  • va_list va_start va_end的概念和使用案例
  • python:如何播放 .spx 声音文件