Created
October 26, 2014 20:35
-
-
Save x684867/8518d7bc1baa0a94b1c2 to your computer and use it in GitHub Desktop.
This gist will create swap on an Amazon or GCE cloud server...useful for avoiding crashes.
This file contains hidden or 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 dd if=/dev/zero of=/swap count=1048576 bs=2048 | |
sudo mkswap /swap | |
sudo swapon /swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment