Last active
January 25, 2016 00:36
-
-
Save binary1230/253a5303ea2eb6102116 to your computer and use it in GitHub Desktop.
setup swap on digitalocean
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
# make a 4gb swap file named /swapfile and use it | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon -s | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment