swap

Linux

Creating swap file:

dd if=/dev/zero of=/opt/swapfile1 bs=1024k count=4096
mkswap /opt/swapfile1

Add swap

swapon /opt/swapfile1

Don't forget to add it to /etc/fstab to enable it on next reboot.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License