安装nginx

brew install nginx

配置文件

/usr/local/etc/nginx/nginx.conf

启动命令

brew services start nginx
brew services stop nginx
brew services restart nginx