Mac OS X 上的 Homebrew 安装无法连接到 raw.githubusercontent.com 端口 443 [英] Homebrew installation on Mac OS X Failed to connect to raw.githubusercontent.com port 443

查看:52
本文介绍了Mac OS X 上的 Homebrew 安装无法连接到 raw.githubusercontent.com 端口 443的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装 Homebrew 时,出现以下连接被拒绝错误.请帮我解决这个问题.

When I try to install Homebrew, I am getting following connection refused error. Please help me to solve this problem.

$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

推荐答案

对我有用.除非它是 github 的真正问题,它可能是,但我猜不是,它可能是您的连接问题.

Works for me. Unless its a real problem with github, which it may be but I'm going to guess that its not, its probably a problem with your connection.

你能通过浏览器访问相同的 URL 吗?

Can you get to the same URL via a browser?

https://raw.githubusercontent.com/Homebrew/install/master/install

如果您在那里也遇到错误,那么您就知道问题出在哪里了.(与您的网络管理员交谈)

If you get an error there too, you know what your problem is. (Talk to your network admin)

如果可行...也许可以尝试在终端中仅执行curl"命令以查看 curl 是否给出了更具体的错误?

If that works...maybe try doing just the "curl" command in your terminal to see if curl gives a more specific error?

此外,如果确实有效,将该文件保存到您计算机上的文件 (brew_install.rb) 中,然后通过

Also, if that does work, save that file to a file on your computer (brew_install.rb) and then run it via

ruby brew_install.rb

这篇关于Mac OS X 上的 Homebrew 安装无法连接到 raw.githubusercontent.com 端口 443的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆