1、安装
brew install nginx
2、启动或重启
sudo brew services start nginxsudo brew services restart nginxsudo brew services stop nginx
3、配置文件
/usr/local/etc/nginx/nginx.conf
https://www.sylvaindurand.org/setting-up-a-nginx-web-server-on-macos/