로그 화일 자동 조절하기

아파치 로그는 wtmp, lastlog 등과 같이 일정 시간, 크기 등등에 따라 로그의 순환 이 이루어지지 않습니다.

ogrotate 로 3개의 로그를 1달단위로 순환 하려면 /etc/logrotate.conf 파일의 마지막에 다음과 같이 추가 합니다.

# system-specific logs may be configured here

/usr/local/apache/log/
webmania.com-access_log {
monthly
rotate 2
}

응용하여 다른 로그들도 주기적으로 관리 할수 있겠네요.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2003/11/24 18:24 2003/11/24 18:24
Response
No Trackback , No Comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/99

Trackback URL : http://tcbs17.cafe24.com/tc/trackback/99

« Previous : 1 : ... 6304 : 6305 : 6306 : 6307 : 6308 : 6309 : 6310 : 6311 : 6312 : ... 6391 : Next »

블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2024/05   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Statistics Graph

Site Stats

Total hits:
194846
Today:
14
Yesterday:
630