본문 바로가기

Server Dev

[CentOS]톰캣 로그 log 파일 분할 - logrotate



vi /etc/logrotate.d/tomcat


/usr/local/tomcat/logs/catalina.out {

copytruncate

daily

rotate 30

missingok

notifempty

dateext

}


logrotate -f /etc/logrotate.d/tomcat

'Server Dev' 카테고리의 다른 글

[CentOS] nginx 설정 컴파일  (0) 2016.06.30
[CentOS] git 2.9 설치하기  (0) 2016.06.21
[CentOS] CentOS 64Bit MongoDB 3.2 설치하기  (0) 2016.01.27
JsonSerialize  (2) 2015.11.23
intellij java decompiler plugin  (0) 2015.10.06