自学内容网 自学内容网

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 <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
    • DRotateTime is 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

原文地址:https://blog.csdn.net/oZiSeFengYe1/article/details/140497360

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!