首页 > 解决方案 > 更改 ssh 中的内存限制没有改变

问题描述

我尝试安装软件包,但出现此错误:

Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Using version ^6.0 for laravel/passport
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

Fatal error: Out of memory (allocated 808607744) (tried to allocate 20480 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/Repository/ComposerRepository.php on line 340

当我检查 php.ini 时,我在 cpanel 中更改了内存限制我有内存限制的新值但是当我运行此命令时

php -i | grep "memory_limit"

我得到了旧值

我怎样才能改变它?

标签: phplaravelmemorycomposer-phpcpanel

解决方案


推荐阅读