Add swap to a running VPS (KVM, dedi)
For 2GB swap:
dd if=/dev/zero of=/swap bs=1M count=2000
mkswap /swap
swapon /swap
Add the below entry to fstab:
vi /etc/fstab
/swap swap swap defaults 0 0
dd if=/dev/zero of=/swap bs=1M count=2000
mkswap /swap
swapon /swap
Add the below entry to fstab:
vi /etc/fstab
/swap swap swap defaults 0 0
Comments
Post a Comment