服务器内存1g 安装插件提示
Installation failed, reverting ./composer.json to its original content.
The following exception is caused by a lack of memory and not having swap configured
百度网上说用这种方法
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
可是试了 虽然有内存了 但是还是报这个错
后来又百度半天搜到这个文章地址 可是我把composer.json和composer.lock复制到本地一个新建项目里再执行composer require amasty/advanced-review --no-scripts --ignore-platform-reqs
时却提示下面这个 这个是什么意思呢?这怎么办
手动指定内存就好了。
php -d memory_limit=4G composer.phar update