在低内存虚拟主机上运行composer install偶发『The following exception is caused by a lack of memory and not having swap configured』错误
Composer官方的解决方案
$ /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
$ /sbin/mkswap /var/swap.1
$ /sbin/swapon /var/swap.1
猜你喜欢: