logrotate 설정 (인터넷 찾아보면 많이 나옴)
/etc/crontab에 추가
*/10 * * * * root /usr/sbin/logrotate /etc/logrotate.d/tomcat8.5 (10분마다 실행)
Logrotate not rotating file after file size exceeds the limit.
From logrotate manpage. It will not modify a log more than once in one day unless the criterion for that log is based on the log's size According to the man page, logrotate should rot...
serverfault.com
https://www.centos.org/forums/viewtopic.php?t=42923
logrotate and cron - CentOS
General support questions --JayJay-- Posts: 6 Joined: 2013/11/20 16:50:03 Post by --JayJay-- » 2013/11/20 17:06:28 As a test, I run logrotate every minute for a certain log file.. To rule out permission issues, I run all logs, files , programs as root. I c
forums.centos.org
'OS > linux-unix' 카테고리의 다른 글
리눅스 종료 코드 (0) | 2020.07.31 |
---|---|
리눅스 환경변수 확인 및 신규추가시 적용 (0) | 2020.07.24 |
shell script include (0) | 2018.05.20 |
다른 계정으로 명령어 실행 (0) | 2018.04.11 |
[AWS] 한국시간(GMT+9)으로 설정 명령어 (0) | 2018.04.11 |