美文网首页
Nginx mac 安装配置(brew)

Nginx mac 安装配置(brew)

作者: 626ab7331d95 | 来源:发表于2018-08-09 11:10 被阅读0次
    1.安装 nginx
    ☁  local  brew install nginx
    
    2.网站根目录
    Docroot is: /usr/local/var/www
    
    3.默认配置文件及端口(非 sudo 运行)
     /usr/local/etc/nginx/nginx.conf 
     8080 
    

    nginx will load all files in /usr/local/etc/nginx/servers/.

    4.启动nginx
      brew services start nginx
    

    Or, if you don't want/need a background service you can just run:

      nginx
    

    相关文章

      网友评论

          本文标题:Nginx mac 安装配置(brew)

          本文链接:https://www.haomeiwen.com/subject/xheqbftx.html