curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解決辦法

網上很多資料https://raw.githubusercontent.com/Homebrew/install/master/install說的都是打開着個網址,我fq也打不開。
ping該地址返回超時
在這裏插入圖片描述
但我手機上又能打開,然後看到說手機熱點可以,我開了熱點也不行,實在沒法,想着ping IP地址試試,然後在https://www.ipaddress.com/查詢 raw.githubusercontent.com對應的IP 地址,如下
在這裏插入圖片描述
ping IP地址,可行
在這裏插入圖片描述

然後修改host文件
在這裏插入圖片描述
然後開始安裝或者卸載
安裝命令

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

卸載命令

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章