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

Comments

Popular posts from this blog

MySQL table conversion

Add addon-domain, sundomain and parked domains via shell in a Cpanel server

Cpanel Migration Script