-
Installing Windows Service s will enable Apache rotatelogs by default.
- Refer CS17799for how to run Apache as Windowsservice.
-
Manually set Apache log rotation by following steps.
-
Execute the commands below within a Windchill Shell (substitute <Apache_Home> with the directory where Apache / PTC HTTPServer is installed):
*cd <APACHE_HOME> ant -f config.xml reconfigure -DRotateLogs=true -DRotateOnFileSize=false -DRotateTime=86400 -
DRotateTimeis in seconds - i.e 86400 is the value to specify 1 day
-
Alternatively, rotate by size with -DRotateOnFileSize=true and -DRotateSize=<size in MB>
-
Apache restart is required after this change
-
-
To disable the log rotation execute the commands below within a Windchill Shell (substitute <Apache_Home> with the directory where Apache / PTC HTTPServer is installed):
*cd <APACHE_HOME> ant -f config.xml reconfigure -DRotateLogs=false- Apache restart is required after this change
windchill apache 日志过大的问题解决方法(单个日志超过6G)
ptc学习者2024-07-19 20:45
相关推荐
金銀銅鐵10 分钟前
[Java] 如何将 Lambda 表达式对应的类保存到 class 文件中?それども1 小时前
Gradle 构建疑难杂症 Could not find netty-transport-native-epoll-linux-aarch_64.ja正儿八经的少年1 小时前
application.yml 系列配置文件作用与区别鱼很腾apoc2 小时前
【学习篇】第20期 超详解 C++ 多态:从语法规则到底层原理cheems95272 小时前
[Spring MVC] 统一功能与拦截器实践总结Full Stack Developme3 小时前
Spring Boot 事务管理完整教程城管不管3 小时前
前后端远程协作青云计划3 小时前
Feed流java1234_小锋3 小时前
String、StringBuilder、StringBuffer的区别?星原望野4 小时前
JAVA集合:List、Set和Map