https://www.cnblogs.com/meng1314-shuai/p/8335140.html https://www.jianshu.com/p/d07ed9d057da
1、brew update //更新brew,确保安装nginx不连接外网超时失败 2、brew search nginx ///检查要安装的软件是否存在 3、brew info nginx //nginx尚未在当地安装(Not installed) 4、brew install nginx //安装 5、nginx -V ////查看版本和配置文件 或者 nginx -v ///查看版本 6、open /usr/local/etc/nginx/ //查看nginx安装目录 7、open /usr/local/Cellar/nginx //其实这才是nginx安装的目录 8、nginx //启动nginx,没有报错就是成功 9、localhost:8080 // 浏览器访问是否成功 10、cat /usr/local/etc/nginx/nginx.conf ///查看配置文件 11、nginx -s reload|reopen|stop|quit //重新加载配置|重启|停止|退出 nginx
NGINX操作与控制: https://www.nginx.cn/nginxchscommandline#reload config 反向代理-负载平衡: https://blog.csdn.net/qq_42030417/article/details/83185809