发布时间:2024-07-28 21:11 阅读量:0 使用brew安装nginx brew install nginx 查看nginx信息 brew info nginx 启动nginx brew services start nginx 验证是否启动成功浏览器输入地址:127.0.0.1:8080停止服务 brew services stop nginx 进入nginx文件目录 cd /opt/homebrew/etc/nginx 重启服务 brew services restart nginx