Skip to content

Instantly share code, notes, and snippets.

@binary1230
Last active January 25, 2016 00:36
Show Gist options
  • Save binary1230/253a5303ea2eb6102116 to your computer and use it in GitHub Desktop.
Save binary1230/253a5303ea2eb6102116 to your computer and use it in GitHub Desktop.
setup swap on digitalocean
# make a 4gb swap file named /swapfile and use it
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment