open-yang

错误日志功能:logs/error.log

    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"; 

访问日志功能:logs/access.log

    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;

 

分类:

技术点:

相关文章:

  • 2021-07-24
  • 2021-10-05
  • 2021-11-20
  • 2021-11-20
  • 2022-02-28
  • 2022-12-23
  • 2021-11-20
  • 2021-11-20
猜你喜欢
  • 2021-11-30
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-04-17
相关资源
相似解决方案