环境:CentOS 6.5 64bit
PHP版本:5.3.3
【问题】
在搭建stalker server时,/var/www/html/stalker_portal/deploy 执行phing出现如下错误:
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 71 bytes) in phar:///var/www/html/stalker_portal/deploy/composer/composer.phar/src/Composer/DependencyResolver/Rule2Literals.php on line 48
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 71 bytes) in phar:///var/www/html/stalker_portal/deploy/composer/composer.phar/src/Composer/DependencyResolver/Rule2Literals.php on line 48
【解决方法】
修改/etc/php.ini
memory_limit = 128M
为
memory_limit = 2048M