brew install nginx

#启动并会开机自启
brew services start nginx 
#停止并关闭开机自启
brew services stop nginx
# 重启
brew services restart nginx

配置文件位置:/opt/homebrew/etc/nginx/nginx.conf

最后修改:2025 年 09 月 17 日
感谢您的支持