[Symfony] composer install “proc_open(): fork failed – Cannot allocate memory”

1、Content-Length mismatch, received…..
composer config repo.packagist composer https://packagist.phpcomposer.com

2、proc_open(): fork failed – Cannot allocate memory
free -m
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=4096
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1

Tips:
1、Close all swap
sudo swapoff -a

2、Clear cache
sudo sh -c ‘echo 1 > /proc/sys/vm/drop_caches’
sudo sh -c ‘echo 2 > /proc/sys/vm/drop_caches’
sudo sh -c ‘echo 3 > /proc/sys/vm/drop_caches’

bnightning

bnightning

你现在的生活,也许不是你想要的,但绝对是你自找的。

2 Comments

  • image

    I couldn’t refrain from commenting. Exceptionally well written!

  • image

    I am not sure where you are getting your info, but great topic.
    I needs to spend some time learning more or understanding more.

    Thanks for wonderful info I was looking for
    this information for my mission.

留下你的评论

*评论支持代码高亮<pre class="prettyprint linenums">代码</pre>