Last active
August 12, 2020 07:26
-
-
Save harmy/baf1a865e40a0259e8962ab07a3931e5 to your computer and use it in GitHub Desktop.
add swap to ubuntu server
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 dd if=/dev/zero of=/swap bs=1G count=16 | |
sudo chmod 0600 /swap | |
sudo mkswap -f /swap | |
sudo swapon /swap | |
echo "sudo vim /etc/fstab" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment