Created
August 30, 2021 23:24
-
-
Save moniquelive/9178d9e1df32353c987d5bcb3f8f8628 to your computer and use it in GitHub Desktop.
Liga swap no linux criando arquivo /swapfile1 de 2GB
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
sudo fallocate -l 2G /swapfile1 | |
sudo mkswap /swapfile1 | |
sudo chown root:root /swapfile1 | |
sudo chmod 0600 /swapfile1 | |
sudo swapon /swapfile1 | |
echo "/swapfile1 none swap sw 0 0" | sudo tee -a /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment