-
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
相关推荐
-西门吹雪41 分钟前
现代C++ 并发编程-学习指南lh179342 分钟前
数据产业服务分类(53)——分类设计——数据能力集成想你依然心痛1 小时前
自定义RTOS内核:从零实现上下文切换与任务调度——汇编、PendSVgeovindu1 小时前
java:Abstract Factory Patterngeovindu1 小时前
java: Factory Method Pattern程序员小八7772 小时前
如何自研一个全局异常处理器风中的小甜瓜2 小时前
ASP.NET Page 那点事爱敲代码的小鱼2 小时前
springsecurity:豆沙小饼干2 小时前
MySQL 小白循序渐进实操路线(纯动手,跟着敲就能练,全程生活化案例:外卖平台)Wang's Blog2 小时前
Java框架快速入门: Spring Bean核心配置与实例化详解