• <bdo id='k6741'></bdo><ul id='k6741'></ul>
    <i id='k6741'><tr id='k6741'><dt id='k6741'><q id='k6741'><span id='k6741'><b id='k6741'><form id='k6741'><ins id='k6741'></ins><ul id='k6741'></ul><sub id='k6741'></sub></form><legend id='k6741'></legend><bdo id='k6741'><pre id='k6741'><center id='k6741'></center></pre></bdo></b><th id='k6741'></th></span></q></dt></tr></i><div id='k6741'><tfoot id='k6741'></tfoot><dl id='k6741'><fieldset id='k6741'></fieldset></dl></div>

    1. <tfoot id='k6741'></tfoot>

        <small id='k6741'></small><noframes id='k6741'>

      1. <legend id='k6741'><style id='k6741'><dir id='k6741'><q id='k6741'></q></dir></style></legend>

        php.ini 中的 log_errors_max_len = 1024,但 php 日志一直在增长

        log_errors_max_len = 1024 in php.ini, but php log keeps growing(php.ini 中的 log_errors_max_len = 1024,但 php 日志一直在增长)
          <tbody id='kO6pQ'></tbody>
        • <bdo id='kO6pQ'></bdo><ul id='kO6pQ'></ul>
          <i id='kO6pQ'><tr id='kO6pQ'><dt id='kO6pQ'><q id='kO6pQ'><span id='kO6pQ'><b id='kO6pQ'><form id='kO6pQ'><ins id='kO6pQ'></ins><ul id='kO6pQ'></ul><sub id='kO6pQ'></sub></form><legend id='kO6pQ'></legend><bdo id='kO6pQ'><pre id='kO6pQ'><center id='kO6pQ'></center></pre></bdo></b><th id='kO6pQ'></th></span></q></dt></tr></i><div id='kO6pQ'><tfoot id='kO6pQ'></tfoot><dl id='kO6pQ'><fieldset id='kO6pQ'></fieldset></dl></div>
          <legend id='kO6pQ'><style id='kO6pQ'><dir id='kO6pQ'><q id='kO6pQ'></q></dir></style></legend>
            1. <small id='kO6pQ'></small><noframes id='kO6pQ'>

                1. <tfoot id='kO6pQ'></tfoot>

                  本文介绍了php.ini 中的 log_errors_max_len = 1024,但 php 日志一直在增长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  正如标题所说,我已经为 php 错误日志设置了最大长度,但它似乎一直增长得比 1024 大得多.我正在使用正确的 php.ini,我已经重新启动了 apache 等.php日志的权限是666.

                  As the title says, I've set the max length for the php error log, but it seems to keep growing much much larger than 1024. I am using the correct php.ini, I've restarted apache, etc. The permissions on the php log are 666.

                  推荐答案

                  作为 PHP 的典型,从配置设置的名称,甚至 文档,但该指令适用于单个日志的长度消息,而不是整个日志文件的长度.

                  As is typical for PHP, it is not really obvious from the name of the configuration setting, or even the documentation, but this directive applies to the length of a single log message, not the length of the log file as a whole.

                  使用 logrotate 或类似工具来完成您要执行的操作.

                  Use logrotate or a similar tool for what you are trying to do.

                  这篇关于php.ini 中的 log_errors_max_len = 1024,但 php 日志一直在增长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                  Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                  PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                  How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                  get a # from a url in php(从 php 中的 url 获取 #)
                  PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)

                    <tfoot id='ALKoZ'></tfoot>
                    <i id='ALKoZ'><tr id='ALKoZ'><dt id='ALKoZ'><q id='ALKoZ'><span id='ALKoZ'><b id='ALKoZ'><form id='ALKoZ'><ins id='ALKoZ'></ins><ul id='ALKoZ'></ul><sub id='ALKoZ'></sub></form><legend id='ALKoZ'></legend><bdo id='ALKoZ'><pre id='ALKoZ'><center id='ALKoZ'></center></pre></bdo></b><th id='ALKoZ'></th></span></q></dt></tr></i><div id='ALKoZ'><tfoot id='ALKoZ'></tfoot><dl id='ALKoZ'><fieldset id='ALKoZ'></fieldset></dl></div>
                  1. <small id='ALKoZ'></small><noframes id='ALKoZ'>

                    <legend id='ALKoZ'><style id='ALKoZ'><dir id='ALKoZ'><q id='ALKoZ'></q></dir></style></legend>
                      <tbody id='ALKoZ'></tbody>
                            <bdo id='ALKoZ'></bdo><ul id='ALKoZ'></ul>