proc_open(): fork failed errors#
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
运行/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 /sbin/mkswap /var/swap.1 /sbin/swapon /var/swap.1
应该就不会报那个错误了。 如果以上并没有解决您的问题 请私信或者留言。