-
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
相关推荐
老前端的功夫5 分钟前
【Java从入门到入土】06:String的72变:从字符串拼接到底层优化又是忙碌的一天12 分钟前
Java 面向对象三大特性:封装、继承、多态深度解析隔壁小邓23 分钟前
在Java中实现优雅的CQRS架构河边小咸鱼29 分钟前
pdd校招实习生内推【实时更新链接】2027届实习、2026届春招zzb158033 分钟前
Agent学习-Reflection框架Holen&&Beer38 分钟前
Spring-Profile与部署说明棉花糖超人38 分钟前
【操作系统】三、线程liuyao_xianhui1 小时前
优选算法_判断字符是否唯一_C++代码雕刻家1 小时前
3.4.Maven-idea集成-导入Maven项目2301_803554521 小时前
c++中的CAS是什么