服务器 composer install 报错:proc_open(): fork failed - Cannot allocate memory

运行这几条命令后问题解决

/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1

总结:
根据问题描述可能是内存原因,maybe是没有给composer配置内存?

你可能感兴趣的:(服务器 composer install 报错:proc_open(): fork failed - Cannot allocate memory)