windchill apache 日志过大的问题解决方法(单个日志超过6G)
- Installing Windows Services will enable Apache rotatelogs by default.
- Refer CS17799 for how to run Apache as Windows service.
- Manually set Apache log rotation by following steps.
- Execute the commands below within a Windchill Shell (substitute with the directory where Apache / PTC HTTPServer is installed):
-
cd ant -f config.xml reconfigure -DRotateLogs=true -DRotateOnFileSize=false -DRotateTime=86400
-
- DRotateTime is in seconds - i.e 86400 is the value to specify 1 day
- Alternatively, rotate by size with -DRotateOnFileSize=true and -DRotateSize=
- Apache restart is required after this change
- Execute the commands below within a Windchill Shell (substitute with the directory where Apache / PTC HTTPServer is installed):
- To disable the log rotation execute the commands below within a Windchill Shell (substitute with the directory where Apache / PTC HTTPServer is installed):
-
cd ant -f config.xml reconfigure -DRotateLogs=false
- Apache restart is required after this change
-
(图片来源网络,侵删)
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。