安装 brew install nginx 查看配置文件 nginx -t 启动 brew services start nginx 运行状态 brew services info nginx 停止 brew services stop nginx