nginx access log logrotate 설정

486 단어 Access
/home/deployuser/deploy/nginx/temp/logs/home.access.log {

  size 100M

  rotate 100 

  nocompress

  daily

  missingok

  notifempty

  sharedscripts

  postrotate

    [ ! -f /home/deployuser/deploy/nginx/temp/logs/nginx.pid ] || kill -USR1 `cat /home/deployuser/deploy/nginx/temp/logs/nginx.pid`

  endscript

}
   /etc/logrotate.d/home , logrotate cronjob      。
postrotate   rotate    nginx              。

좋은 웹페이지 즐겨찾기