lograte切割tengine日誌

記錄nginx

/srv/logs/nginx/*log {
    create 0644 nobody nobody
    daily
    rotate 10
    missingok
    notifempty
    compress
    sharedscripts
    postrotate
        /bin/kill -USR1 `cat /srv/app/tengine/logs/nginx.pid 2>/dev/null` 2>/dev/null || true
    endscript
}
相關文章
相關標籤/搜索