今天在homestead安装新的laravel项目的时候执行composer install报错:
proc_open(): fork failed - Cannot allocate memory
下边直接上解决办法:
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1
今天在homestead安装新的laravel项目的时候执行composer install报错:
proc_open(): fork failed - Cannot allocate memory
下边直接上解决办法:
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1