Skip to content

Instantly share code, notes, and snippets.

@gponty
Created February 1, 2019 10:13
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gponty/99ff99135a725ded5f5ce04d5278d9cb to your computer and use it in GitHub Desktop.
Save gponty/99ff99135a725ded5f5ce04d5278d9cb to your computer and use it in GitHub Desktop.
Create swap ovh vps
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
@HarryHuy
Copy link

Then you may want to make it permanently by adding to /etc/fstab

/swapfile swap swap defaults 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment