Created
April 15, 2015 08:56
-
-
Save Wind4/283a289775b188a17b92 to your computer and use it in GitHub Desktop.
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 512M /var/swapfile | |
chmod 0600 /var/swapfile | |
mkswap /var/swapfile | |
swapon /var/swapfile | |
echo "/var/swapfile swap swap sw 0 0" >> /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment