Created
September 24, 2019 19:51
-
-
Save jeanbispo/153ee13f7d39760c2497e02615784364 to your computer and use it in GitHub Desktop.
Criar swap linux
This file contains 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
cd / && sudo mkdir swap | |
sudo dd if=/dev/zero of=/swap/swapfile bs=1024 count=4000000 | |
sudo mkswap /swap/swapfile | |
sudo swapon /swap/swapfile | |
cd /etc | |
sudo nano fstab | |
FSTAB | |
/swap/swapfile swap swap defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment