1、地址:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2、安装nginx
1.执行命令
brew search nginx //查询要安装的软件是否存在
2.执行安装
brew install nginx
3.查看安装目录
open /usr/local/Cellar/nginx //其实这个才是nginx被安装到的目录
4、启动nginx,在文件夹1.21.0\bin下的nginx
5.访问:http://localhost:8080/
安装成功