CentOS,Infrastructure

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/swapfile

After the swap file “/swpfile” is created, enable the file.

swapon/swapfile

You can check the status with the ...