```bash brew install nginx #启动并会开机自启 brew services start nginx #停止并关闭开机自启 brew services stop nginx # 重启 brew services restart nginx ``` 配置文件位置:/opt/homebrew/etc/nginx/nginx.conf brew install nginx #启动并会开机自启 brew services start nginx #停止并关闭开机自启 brew services stop nginx # 重启 brew services restart nginx配置文件位置:/opt/homebrew/etc/nginx/nginx.conf 最后修改:2025 年 09 月 17 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 感谢您的支持