-
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
相关推荐
yngsqq2 小时前
c# —— StringBuilder 类星星点点洲3 小时前
【操作幂等和数据一致性】保障业务在MySQL和COS对象存储的一致xiaolingting3 小时前
JVM层面的JAVA类和实例(Klass-OOP)风口上的猪20153 小时前
thingboard告警信息格式美化追光少年33224 小时前
迭代器模式超爱吃士力架5 小时前
MySQL 中的回表是什么?扣丁梦想家5 小时前
设计模式教程:装饰器模式(Decorator Pattern)drebander5 小时前
Maven 构建中的安全性与合规性检查drebander5 小时前
Maven 与 Kubernetes 部署:构建和部署到 Kubernetes 环境中王会举6 小时前
DeepSeek模型集成到java中使用(阿里云版)超简单版