作者:BaBy_PUBLIC
原文链接: https://blog.csdn.net/weixin_44142075/article/details/116854118
Homebrew官网:https://brew.sh/
按照官网的操作会遇到错误
在终端下运行
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 1
结果:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
安装步骤
- 在终端下执行(建议使用中科大源)
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
- 1
检测是否安装成功
brew -v
- 1
结果
Homebrew 3.1.7-42-…
Homebrew/homebrew-core …
Homebrew/homebrew-cask …
使用brew安装nginx
brew install nginx
- 1