Created
November 14, 2019 11:53
-
-
Save wagura-maurice/0d0843a4ba53287f871b73b08772d764 to your computer and use it in GitHub Desktop.
Composer update runs out of memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df -h | |
dd if=/dev/zero of=/swapfile bs=1M count=1024 | |
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 | |
mkswap /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
echo 'echo "/swapfile none swap defaults 0 0" >> /etc/fstab' | sudo sh | |
free -m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment