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

相关推荐

  1. sqlserver2012 解决日志问题

    2024-07-18 08:06:02       50 阅读
  2. Docker 容器日志占用空间解决办法

    2024-07-18 08:06:02       33 阅读
  3. SpringBoot项目 nohup启动运行日志问题

    2024-07-18 08:06:02       34 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-18 08:06:02       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-18 08:06:02       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-18 08:06:02       57 阅读
  4. Python语言-面向对象

    2024-07-18 08:06:02       68 阅读

热门阅读

  1. strncpy 和 snprintf 的区别

    2024-07-18 08:06:02       21 阅读
  2. Kafka系列之:Kafka存储数据相关重要参数理解

    2024-07-18 08:06:02       17 阅读
  3. Oracle(8)什么是Oracle实例(Instance)?

    2024-07-18 08:06:02       22 阅读
  4. python 迭代器介绍 map() 函数

    2024-07-18 08:06:02       18 阅读
  5. Linux chmod 命令简介

    2024-07-18 08:06:02       23 阅读
  6. QT+winodow 代码适配调试总结(三)

    2024-07-18 08:06:02       20 阅读
  7. 代码随想录学习 54day 图论 A star算法

    2024-07-18 08:06:02       16 阅读
  8. Windows中配置Python 3.11环境安装教程

    2024-07-18 08:06:02       22 阅读
  9. 灵动微单片机SPI LCD彩屏方案优势

    2024-07-18 08:06:02       22 阅读
  10. DP学习——组合模式

    2024-07-18 08:06:02       18 阅读