Created
October 3, 2019 05:37
-
-
Save kuczmama/de1845efcfedd6e4e9464532dc00c419 to your computer and use it in GitHub Desktop.
Increase swap space in ubuntu 18.04
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
sudo fallocate -l 16G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab | |
sudo mount -a | |
swapon -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment