カスタム検索
|
Tweet |
|
|
Apacheのログを分割する実験
Modified: 14 February 2004
Apacheのログの指定
"/usr/local/etc/logrotate.d" に、"apache" というファイルを作ります。
/var/log/httpd-access_log /var/log/httpd-error_log { rotate 250 monthly postrotate /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true endscript }