How To Add Swap File on CentOS
Create Swap File
Here, as an example, create a 400MB swap file “/swpfile”.
dd if=/dev/zero of=/swapfile bs=1M count=1048mkswap/swapfilechmod 600/swapfileAfter the swap file “/swpfile” is created, enable the file.
swapon/swapfileYou can check the status with the ...