PHP Warning: proc_open(): fork failed

composer global require “laravel/installer”
提示:
PHP Warning: proc_open(): fork failed
执行:
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
可以解决



Tagged . Bookmark the permalink.

One Response to PHP Warning: proc_open(): fork failed

  1. Osmond says:

    free -m
    mkdir -p /var/_swap_
    cd /var/_swap_
    #Here, 1M * 2000 ~= 2GB of swap memory
    dd if=/dev/zero of=swapfile bs=1M count=2000
    mkswap swapfile
    swapon swapfile
    echo “/var/_swap_/swapfile none swap sw 0 0” >> /etc/fstab
    #cat /proc/meminfo
    free -m