add swap to cloud host (KVM)
Piper McCorkle
contact at piperswe.me
Wed Aug 7 19:57:27 UTC 2019
On 8/6/19 8:36 PM, Eliza wrote:
> So how to add swap to the system?
DigitalOcean has a good guide that should work on most distros:
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-18-04
TL;DR:
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 1765 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20190807/79758148/attachment.key>
More information about the ubuntu-users
mailing list