Created
March 31, 2016 17:47
-
-
Save imam-san/108b51e5af6862f08bfa095bdae3d0a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create file | |
| /etc/logrotate.d/tomcat | |
| content tomcat | |
| " | |
| /opt/tomcat7/logs/catalina.out { | |
| copytruncate | |
| daily | |
| rotate 7 | |
| compress | |
| missingok | |
| size 5M | |
| } | |
| " | |
| execute manually | |
| ==== /usr/sbin/logrotate /etc/logrotate.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment