nginx log

Nginx access.log文件太大,自动释放清理

https://freexyz.cn/server/18640.html

Linux服务器因为Nginx日志access.log文件过大项目无法访问的问题

https://www.cnblogs.com/shoose/p/13539571.html

nginx access log 超大!

https://www.jianshu.com/p/294933392ba6

 

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

 

 

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  /var/log/nginx/access.log  main;

posted @ 2022-01-03 21:58  tonggc1668  阅读(267)  评论(0编辑  收藏  举报