-
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
相关推荐
程序员黑豆2 小时前
Java字符串详解EntyIU4 小时前
NFS离线部署OH_TPC6 小时前
HarmonyOS APP开发---“滤镜大师“图像处理App,需要用到这个库imaol18 小时前
链表 -- 环链表imaol18 小时前
链表 -- 双向链表2601_963869958 小时前
【计算机毕业设计】基于Java的相框定制系统的设计与实现于烛9 小时前
为什么hasNext() 对只有一个元素的集合返回 true?90%初学者都有的疑问wuminyu9 小时前
JVM利用io_uring优化堆外内存性能原理剖析imaol110 小时前
数据结构---队列半亩码田10 小时前
【.NET新特性·第11篇】C# 14 字段属性:告别手写 backing field