查看brew是否存在Nginx源 brew search nginx 安装nginx执行: brew install nginx nginx命令 brew services start nginx # 启动nginx # 启动nginx -s quit # 安全退出nginx -s stop # 立即退出nginx -s reload # 重启 修改配置 vi /usr/local/etc/nginx/nginx.conf 访问快速入门