参考网站:https://brew.sh/index_zh-cn.html
一、安装 homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
二、安装Nginx
## 安装Nginx
brew install nginx ##默认配置了环境变量
##启动 Nginx
nginx
## 停止Nginx
nginx -s stop
## 重启Nginx
nginx -s reload