Make swap space on linux server
To create and add swap to a server..
If you have a spare disk or partition already just make it to swap like so:
If you don't have such a partition already you can use a file..
dd if=/dev/zero of=/swap bs=1024 count=1000000
Change "/swap" can be whatever you want to call it. Once created, use the mkswap command as above.
Then to enable the swap: swapon /swap
To disable: swapoff /swap
Tags: linux swap