标签:
PHP Fatal error: Uncaught exception ‘ErrorException‘ with message ‘proc_open(): fork failed - Cannot allocate memory‘ in phar
原因由于虚拟机分配的内存太少,而导致没有可用内存打开文件
free -m total used free shared buffers cached Mem: 2048 357 1690 0 0 237 -/+ buffers/cache: 119 1928 Swap: 0 0 0
1:加大虚拟机的内存
2:在Linux下的解决方案:
开启swap:
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 /sbin/mkswap /var/swap.1 /sbin/swapon /var/swap.1
composer 报proc_open(): fork failed errors 错误解决方法
标签:
原文地址:http://my.oschina.net/freax/blog/497247