国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

docker部署的環(huán)境中執(zhí)行php webman.phar 提示內(nèi)存溢出,但上傳源碼執(zhí)行沒問題

moco

問題描述

docker部署的環(huán)境中執(zhí)行php webman.phar 提示內(nèi)存溢出,但上傳源碼執(zhí)行沒問題,memory_limit已設(shè)置是2048M,這個(gè)是為啥,我配做錯(cuò)誤了嗎?

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1014728015 bytes) in Unknown on line 0

程序代碼

打包配置

return [
    'enable'            => true,

    'phar_file_output_dir'    => BASE_PATH . DIRECTORY_SEPARATOR . 'build',

    'phar_filename'     => 'webman.phar',

    'signature_algorithm'=> Phar::SHA256, //set the signature algorithm for a phar and apply it. The signature algorithm must be one of Phar::MD5, Phar::SHA1, Phar::SHA256, Phar::SHA512, or Phar::OPENSSL.

    'private_key_file'  => '', // The file path for certificate or OpenSSL private key file.

    'exclude_pattern'   => '#^(?!.*(config/plugin/webman/console/app.php|webman/console/src/Commands/(PharPackCommand.php|ReloadCommand.php)|LICENSE|composer.json|.github|.idea|doc|docs|.git|.setting|runtime|test|test_old|tests|Tests|vendor-bin|.md))(.*)$#',

    'exclude_files'     => [
        '.env', 'LICENSE', 'composer.json', 'composer.lock','start.php'
    ]
];
925 1 0
1個(gè)回答

walkor 打賞

看報(bào)錯(cuò)是 memory_limit 設(shè)置沒生效,還是128M,上傳的文件太大了超過了128M。
沒生效可能是你弄錯(cuò)php.ini文件了,執(zhí)行 php --ini 找到php.ini的路徑更改memory_limit,改完后要restart重啟webman才能生效。

  • moco 2023-05-15

    好的 我檢查一下

年代過于久遠(yuǎn),無法發(fā)表回答
??