简体   繁体   中英

what setting causes catalina.out to be renamed as catalina.out.1

in my Linux server(ubuntu) the tomcat log file catalina.out is automatically rename to new file name eg. catalina.out catalina.out.1 , catalina.out.2 , catalina.out.3 , catalina.out.4 etc etc

so what setting causes catalina out to be renamed as catalina.out.1 ?

在此处输入图片说明

The default Tomcat 7 package in Ubuntu 12.04 installs the file /etc/logrotate.d/tomcat7 which contains the logrotate config for catalina.out (I assume it is the same for Tomcat 6):

/var/log/tomcat7/catalina.out {
  copytruncate
  weekly
  rotate 52
  compress
  missingok
  create 640 tomcat7 adm
}

Type man logrotate on the command-line for more info.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM