Created
March 4, 2015 12:02
-
-
Save lhartikk/72fc0cbba366ad1b53b6 to your computer and use it in GitHub Desktop.
Set linux swap
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
fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment