-
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
相关推荐
invicinble14 分钟前
spring相关系统性理解,企业级应用jiayong2336 分钟前
Spring IOC 与 AOP 核心原理深度解析卿雪1 小时前
Redis 线程模型:Redis为什么这么快?Redis为什么引入多线程?lkbhua莱克瓦241 小时前
IO流练习(修改文件中的数据)老华带你飞1 小时前
汽车销售|汽车报价|基于Java汽车销售系统(源码+数据库+文档)西岭千秋雪_1 小时前
MySQL集群搭建小马爱打代码1 小时前
Spring AI:文生视频 - wanx2.1-i2v-plus华仔啊1 小时前
RebbitMQ 入门教程看这一篇就够了象象翔1 小时前
AI+若依(实战篇)CHANG_THE_WORLD1 小时前
C++ vs Python 参数传递方式对比