zoukankan      html  css  js  c++  java
  • nginx安装目录文件

    nginx安装目录

      conf 存放nginx的配置文件

        在修改配置文件nginx.conf之前,一般先备份cp nginx.conf nginx.conf.bak

      html 存放前端文件的

        默认带有首页index.html和f服务器错误提示50x.html页面

      logs 存放nginx的日志文件

         error.log:错误日志,在conf/nginx.conf文件中可以进行配置

               #error_log logs/error.log;

            #error_log logs/error.log notice;

            #error_log logs/error.log info;

            #error_log "pipe:rollback logs/error_log interval=1d baknum=7 maxsize=2G";

        access.log:请求日志,在conf/nginx.conf文件的http{}中可以进行配置 

            #log_format main '$remote_addr - $remote_user [$time_local] "$request" '

            # '$status $body_bytes_sent "$http_referer" '

            # '"$http_user_agent" "$http_x_forwarded_for"';

            #access_log logs/access.log main;

            #access_log "pipe:rollback logs/access_log interval=1d baknum=7 maxsize=2G" main;

      sbin 存放了nginx的可执行命令

        nginx命令,安装之后在PATH环境变量进行配置

        

  • 相关阅读:
    背景透明度IE兼容性代码
    酷站收藏
    洛谷P1142 轰炸 数学
    洛谷P1282 多米诺骨牌
    洛谷P1247 取火柴游戏 数学题 博弈论
    洛谷P1135 奇怪的电梯 广搜
    洛谷P1077 摆花 动态规划
    洛谷P1161 开灯 数学
    洛谷P1154 奶牛分厩 数学
    洛谷P2147 [SDOI2008]Cave 洞穴勘测 Link-Cut Tree LCT
  • 原文地址:https://www.cnblogs.com/open-yang/p/11253372.html
Copyright © 2011-2022 走看看