ããã¼ãã¼ã·ã§ã³ããã¹ã¯ãªããæ¸ãã¦ãcronã§åãããããlogrotateã«ä»»ããããã®ã©ã¡ããã ã¹ã¯ãªããåå ´åã¯ä»¥ä¸ã®éãã $ mv access.log access.log.0 $ kill -USR1 cat master.nginx.pid $ sleep 1 $ gzip access.log.0 # do something with access.log.0 via http://wiki.nginx.org/NginxLogRotation logrotateã使ãå ´åã¯ã/etc/logrotate.d ã«ä»¥ä¸ã®è¨å®ã追å ã postrotate ã®2è¡ç®ã¯ãã¡ã¤ã«ã®æ¥ä»ãrotateããæ¥ã«ãªãã®ã§ãç¡çç¢çåæ¥æ¥ä»ã«å¤æ´ãã¦ããã ãã§ãã /var/log/httpd/access.log { daily dateext rotate 365 missin
{{#tags}}- {{label}}
{{/tags}}