網上很多資料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)"