简体   繁体   English

Tomcat catalina.out logrotate 在 redhat 上无法正常工作

[英]Tomcat catalina.out logrotate on redhat not working properly

I am trying to roll the log catalina.out on a webserver using logrotate.我正在尝试使用 logrotate 在网络服务器上滚动日志 catalina.out。 I have been able to roll the log and a log catalina.out-dateext is created.我已经能够滚动日志并创建了一个日志catalina.out-dateext But I notice that the log is being written in the new file catalina.out-dateext .但我注意到日志正在写入新文件catalina.out-dateext Is there something that need to be done on the webserver?有什么需要在网络服务器上完成的吗?

Thank you谢谢

Add copytruncate in your /etc/pex/tomcat file.在您的/etc/pex/tomcat copytruncate /etc/pex/tomcat文件中添加copytruncate For more info about all the options: vineetmanohar.com/2010/03/howto-rotate-tomcat-catalina-out有关所有选项的更多信息: vineetmanohar.com/2010/03/howto-rotate-tomcat-catalina-out

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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