-
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
相关推荐
葡萄城技术团队7 小时前
InfluxDB 2\.x 深度解析:核心架构、Flux 函数与制造业落地指南(三)Super 含7 小时前
Android 启动优化(五):线程、GC 与 IO 为什么会拖慢启动?counting money7 小时前
Java IO流详解:从InputStream到文件操作实战程序员小八7778 小时前
上海百度B端java后端日常实习一面mldong9 小时前
零依赖的秘密:8 大 SPI 设计Diligently_11 小时前
Anolis 系统更新与密码设置&磁盘扩容mqiqe11 小时前
线程调度与 Schedulers:Project Reactor 并发模型的核心引擎我命由我1234511 小时前
Android 开发问题:unexpected element <service> found in <manifest>正在走向自律11 小时前
飞算JavaAI能搞定充电站故障处置吗?