安裝homebrew報錯curl: (7) Failed to connect to raw.githubusercontent.com port 443:Connection refused


安裝homebrew的時候,在終端輸入

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  

提示:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation

 

解決方法:

先在瀏覽器輸入這個地址:

https://raw.githubusercontent.com/Homebrew/install/master/install
(要FQ)

如下: 

 

把這個網頁保存名為brew_install.rb的文件,保存的位置你隨便,只要自己能找到。

則在終端輸入curl

$ curl

curl: try 'curl --help' or 'curl --manual' for more information

這樣就沒錯,要是報錯,那我就不知道了!

然后在終端進入存放這個文件的目錄,然后終端輸入

ruby brew_install.rb

然后等安裝homebrew吧!



轉載鏈接:https://www.jianshu.com/p/68efabd2e32b

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM