Created
January 26, 2019 16:57
-
-
Save mayurdange/ef2f1afde9923372c4d4102ddc35c607 to your computer and use it in GitHub Desktop.
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
| https://stackoverflow.com/questions/17173972/how-do-you-add-swap-to-an-ec2-instance | |
| sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 | |
| sudo /sbin/mkswap /var/swap.1 | |
| sudo chmod 600 /var/swap.1 | |
| sudo /sbin/swapon /var/swap.1 | |
| add this line to /etc/fstab: | |
| /var/swap.1 swap swap defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment