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环境变量进行配置

    


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM