Created
August 10, 2017 16:08
-
-
Save f4th4n/76cc5320fa73017adebee00573c7f52f to your computer and use it in GitHub Desktop.
Create Swap Centos
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
fallocate -l 4G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
swapon -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment