1.安装
brew update. // 确保mac安装了homebrew
brew install nginx. // 安装nginx
2.启动
sudo nginx // 启动
sudo nginx -s reload // 重启
3.停止
sudo nginx -s stop
4.查看进程
ps -ef|grep nginx
brew update. // 确保mac安装了homebrew
brew install nginx. // 安装nginx
sudo nginx // 启动
sudo nginx -s reload // 重启
sudo nginx -s stop
ps -ef|grep nginx