composer 提示内存不足

scvoet 2020-8-20 471

[root@localhost www]# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 20480 bytes) in phar:///opt/appnode/appnode-php73/root/usr/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 64

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 20480 bytes) in phar:///opt/appnode/appnode-php73/root/usr/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 64

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.


但事实上我已经修改了限制

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
php_admin_value[memory_limit] = -1
最新回复 (3)
返回
发新帖