Ȩ
ȣ
()
(ű)
/û
FAQ
ٶ
070-8260-2526
9 ~ 6
352-0331-1626-83
:ũڸ
ֹ
Ȩ > > ֹ
ȸ
10956
α ϴ
α ϴ
ex) /var/log/messages ũⰡ Ŭ --> "0" ¹
cat /dev/null > /var/log/messages ó Ͻø ˴ϴ.
α ʱȭ Ű κ
/etc/logrotate.conf [root@fileserver1 /]# cat /etc/logrotate.conf
weekly
rotate 4
create 0600 root root
include /etc/logrotate.d
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
- logrotated Ǹ鼭 /etc/logrotate.conf о鿩 .
- include /etc/logrotate.d Ͽ /etc/logrotate.d 丮 ϴ α ϵ
о鿩 .
daily
ش α Ʈ .
weekly
ش α Ʈ .
monthly
ش α ſ Ʈ .
rotate
α ڸŭ Ʈ . Ʈ .
) rotate 2 شα secure
secure () secure.1, secure.2ϱ . ڵ.
http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#transferlog
ֹ
¶λ
Ʈ