-
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
相关推荐
小强库计算机毕业设计9 小时前
SpringBoot+Vue3 学生宿舍管理系统实战李冰然9 小时前
深入Java集合框架:HashMap源码解析(JDK 8)人道领域10 小时前
【0-1的agent进阶篇】RAG:从Embedding到检索增强生成的底层逻辑桦说编程11 小时前
盘点并发集合里那些容易误判的行为IT爱学堂11 小时前
java版数据结构和算法+AI算法和技能学习指南evans在进步12 小时前
LeetCode 394:字符串解码——Java 单栈模拟与嵌套解析详解AI人工智能+电脑小能手12 小时前
大白话说Java设计模式-17-装饰器模式(源码剖析篇)m0_5474866613 小时前
《Java程序设计与实践 》全套PPT课件2026土司大王13 小时前
LeetCode hto100——字母异位词分组码匠许师傅13 小时前
【C++ 面试真题】聊聊 C++ 中的 lambda 表达式