composer 内存不足?

在低内存虚拟主机上运行composer install偶发『The following exception is caused by a lack of memory and not having swap configured』错误

file

解决

Composer官方的解决方案

$ /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
$ /sbin/mkswap /var/swap.1
$ /sbin/swapon /var/swap.1

file

讨论数量: 0

请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!