macOS安装Homebrew时总是报错(Failed to connect to raw.githubusercontent.com port 443: Connection refused)

原因

  由于某些你懂的因素,导致GitHub的raw.githubusercontent.com域名解析被污染了。

解决

  1. https://www.ipaddress.com/,通过该网站查询raw.githubusercontent.com的真实IP。
  2. 修改hosts
sudo vim /etc/hosts


xxx.xxx.xxx.xxx  raw.githubusercontent.com

mac 安装homebrew 报443

 

相关文章:

  • 2021-06-25
  • 2021-05-02
  • 2022-02-24
  • 2021-06-10
猜你喜欢
  • 2021-08-07
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-04-18
  • 2021-05-14
相关资源
相似解决方案