Add swap space on Linux
Contents
If we don’t have enough memory in a Linux machine, we can enable the swap space to increase the “memory”.
Check the free memory and free space
1 | #check if any swap space enable |
Create the swap file and enable swap space
1 | #create the swap file |
Make the swap file permanent
1 | #backup the /etc/fstab file in case anything goes wrong |
That’s all for enabling the swap file on Linux. For more information, we can find more on https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04