-
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 小时前
JavaScript 运算符完全指南极客互动API2 小时前
企业微信 AI 智能客服实战:Spring Boot+Vue 接入豆包、扣子、DeepSeek今天AI了吗2 小时前
Codex使用技巧:深度解析 Plan Mode 与 Goal ModeHuangxy__2 小时前
java+ai 全栈项目阿维的博客日记2 小时前
Example API指南2神仙别闹2 小时前
基于C#实现(WinForm)文件管理系统砚底藏山河2 小时前
存储选型实战:CSV-SQLite-MySQL同机基准(魔码量化实战 #02)huaweichenai2 小时前
spring boot 打包并部署到线上服务土司大王2 小时前
LeetCode hot100——实现 Trie (前缀树)lhldsg2 小时前
从零构建智慧场馆解决方案小程序:开发全流程实战