free -h

swapoff -a

dd if=/dev/zero of=/swap bs=1M count=1024

chmod +x /swap

mkswap /swap

swapon /swap

nano /etc/fstab
/swap swap swap defaults 0 0