>> Edit article
이름
제목
패스워드
logrotate 를 사용해서 아파치랑 몇몇 로그를 자르고 있습니다. 그런데 보통 xferlog xferlog.1 xferlog.2 이렇게 파일이 있다면 현재 로그가 쌓이는 파일은 xferlog 인데.... 유난히 아차피 로그의 경우만 access_log access_log.1 이 경우에서 access_log.1 파일에 현재 로그가 쌓이고 있습니다. error_log 도 마찬가지구여.... 다른 로그는 모두 xferlog 와 같이 전자의 경우인데여... 아파치 로그만 그렇게 거꾸로 되는 이유가...?... /etc/logrotate.d/apache 파일입니다. /var/log/access_log /var/log/error_log { missingok rotate 4 weekly postrotate /bin/kill -HUP 'cat /var/log/httpd.pid 2>/dev/null' 2> /dev/null || true endscript } 설명을 부탁드립니다. ^^;
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved