Created
February 8, 2019 03:51
-
-
Save kilfu0701/23b4b076ed8107482a9fe5a124dd012c to your computer and use it in GitHub Desktop.
centos 7 create swapfile
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
| dd if=/dev/zero of=/swapfile count=4096 bs=1MiB | |
| mkswap /swapfile | |
| swapon /swapfile | |
| # vi /etc/fstab | |
| /swapfile swap swap defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment