Skip to content

Instantly share code, notes, and snippets.

@ShaneQi
Last active June 19, 2017 04:17
Show Gist options
  • Save ShaneQi/13d86a729cbfecbd165efb4a95530735 to your computer and use it in GitHub Desktop.
Save ShaneQi/13d86a729cbfecbd165efb4a95530735 to your computer and use it in GitHub Desktop.
add swap for ubuntu 1604
free -h
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment