-
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
相关推荐
IT古董33 分钟前
第四章:大模型(LLM)】06.langchain原理-(3)LangChain Prompt 用法轻抚酸~4 小时前
小迪23年-32~40——java简单回顾Sirius Wu5 小时前
Maven环境如何正确配置健康平安的活着6 小时前
java之 junit4单元测试Mockito的使用Java小白程序员7 小时前
Spring Framework :IoC 容器的原理与实践xuTao6677 小时前
Easy Rules 规则引擎详解m0_480502648 小时前
Rust 入门 KV存储HashMap (十七)杨DaB8 小时前
【SpringBoot】Swagger 接口工具YA3338 小时前
java基础(九)sql基础及索引桦说编程9 小时前
方法一定要有返回值 \ o /