-
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 小时前
【从零搭建】AI大模型之ReactAgent智能体对接MCP实战SimonKing2 小时前
AI Assistant被"隐藏"了?别慌,IDEA 2026.3 这波是换了个脑子Resean02233 小时前
SpringMVC 6+源码分析(九)异常处理geats人山人海3 小时前
现代c++4.1下一站春风里4 小时前
Spring IoC 控制反转 完整技术笔记挖掘狂人4 小时前
用户连点两次「确认支付」,你的后端凭什么只扣一次钱?codigger4 小时前
用户连点两次「确认支付」,你的后端凭什么只扣一次钱?Resean02234 小时前
SpringMVC 6+源码分析(十)数据绑定与类型转换lw_zhang11014 小时前
爆肝一个月,Java 从入门到精通39 - 使用Log4jRain的Java大神之路4 小时前
面试官问"MySQL 大表 COUNT(*) 怎么优化",90% 的人第一步就答错了