Skip to content

Instantly share code, notes, and snippets.

@moviendome
Created February 26, 2016 06:01
Show Gist options
  • Save moviendome/f9d35c1cf5316365b29c to your computer and use it in GitHub Desktop.
Save moviendome/f9d35c1cf5316365b29c to your computer and use it in GitHub Desktop.
Create Swap File on a Digital Ocean Ubuntu 14.04 droplet
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
swapon -s
free -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment