我在 Vagrant 的VirtualBox环境中安装了带有 Composer 的php5.5。
当我尝试任何 Composer 的命令时,以下错误随机出现: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
引用:https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors
希望它能对您有所帮助:)
关于php - Composer 在 Vagrant 中更新 `The following exception is caused by a lack of memory and not having swap configured`错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38828224/