Recent Comments
목록apache logrotate (1)
변군이글루

Apache 로그 logrotate(로테이드) 설정 apache logrotate 파일 편집 vim /etc/logrotate.d/apache $ cat /etc/logrotate.d/apache /logs/access/*-access-*.log /logs/error/*-error-*.log { daily rotate 7 notifempty missingok compress delaycompress sharedscripts postrotate /bin/kill -HUP `cat /usr/local/apache/logs/httpd.pid 2>/dev/null` 2> /dev/null || true endscript } logrotate 실행 /sbin/logrotate -f /etc/logrotate.d/..
* 리눅스
2021. 1. 7. 13:48