-
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
相关推荐
什么想法都无14 分钟前
streamm0_7482336414 分钟前
WebService简介love静思冥想15 分钟前
Stream `Collectors.toList()` 和 `Stream.toList()` 的区别(Java)Ch.yang34 分钟前
【Spring】 Bean 注入 HttpServletRequest 能保证线程安全的原理web1508509664135 分钟前
基于Mysql、JavaScript、PHP、ajax开发的MBTI性格测试网站(前端+后端)昙鱼43 分钟前
springboot创建web项目eternal__day43 分钟前
数据结构(哈希表(中)纯概念版)天之涯上上1 小时前
JAVA开发 在 Spring Boot 中集成 Swagger2402_857583491 小时前
“协同过滤技术实战”:网上书城系统的设计与实现白宇横流学长1 小时前
基于SpringBoot的停车场管理系统设计与实现【源码+文档+部署讲解】