How to create SWAP in Linux or Increase SWAP space in Linux

Here we are going to create a SWAP of 8GB in size. Run commands on your linux host in below sequence. dd if=/dev/zero of=/swapfile bs=1024 count=8388608& chmod 0600 /swapfile mkswap /swapfile -f swapon /swapfile Add below entry in /etc/fstab file and save the file. /swapfile     swap     swap     defaults     0     0… Continue reading How to create SWAP in Linux or Increase SWAP space in Linux