sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
Created
March 7, 2017 03:16
-
-
Save skydiver/cff7c7e5bf7b650bc9eeb187ff6b2bce to your computer and use it in GitHub Desktop.
[Digital Ocean] Add Swap Space on Ubuntu 16.04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment