Created
February 1, 2019 10:13
-
-
Save gponty/99ff99135a725ded5f5ce04d5278d9cb to your computer and use it in GitHub Desktop.
Create swap ovh vps
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 2G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then you may want to make it permanently by adding to /etc/fstab