-
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
相关推荐
C++、Java和Python的菜鸟17 分钟前
第7章 Java高级技术程序员佳佳27 分钟前
模型网关灰度不是调百分比:把放量、观测和回滚做成账本Listen·Rain2 小时前
Springboot整合Ollama实现调用本地多模型霸道流氓气质2 小时前
Java 工程师 AI 智能体(Agent)完整学习路线aaPIXa6222 小时前
C++模板元编程:编译期计算Fibonacci数列SunnyDays10112 小时前
Java 编辑 PDF:从增删改查到加密保护球king2 小时前
CC GUI 插件:在 IDEA 中使用 CodeX山塘小鱼儿2 小时前
Agent多轮对话调用MCP Tools豆瓣鸡3 小时前
网关、服务 userId 透传bksczm3 小时前
Linux之信号量(POSIX标准)