Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
安装使用CocoaPods的小伙伴都需要先安装好Home-brew,最近我在安装Homebrew时却遇到了这样的问题,终端输入安装命令行 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 报错Failed to connect to raw.githubusercontent.com port 443: Connection refused 为了查询是否是网络问题,天国经常屏蔽外网你懂得,我打开网页https://raw.githubusercontent.com/Homebrew/install/master/install发现报The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
所以解决方案来啦!终端输入/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/install)"就可以安装好啦