Created
May 23, 2014 07:09
-
-
Save icecreammatt/e3eeed3714531f17aa9f to your computer and use it in GitHub Desktop.
Add 512MB Swap
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
| #!/bin/bash | |
| dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 | |
| mkswap /swapfile1 | |
| chown root:root /swapfile1 | |
| chmod 0600 /swapfile1 | |
| swapon /swapfile1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment