1. 查看brew是否存在Nginx源

      1. brew search nginx
    2. 安装nginx执行:

      1. brew install nginx
    3. nginx命令

      1. brew services start nginx # 启动
      2. nginx # 启动
      3. nginx -s quit # 安全退出
      4. nginx -s stop # 立即退出
      5. nginx -s reload # 重启
    4. 修改配置

      1. vi /usr/local/etc/nginx/nginx.conf
    5. 访问快速入门