Add 4G swap
1 2 3 4 5 6 |
dd if=/dev/zero of=/swapfile bs=1024k count=4096 chown root:root /swapfile chmod 0600 /swapfile mkswap /swapfile swapon /swapfile echo "/swapfile swap swap defaults 0 0" >> /etc/fstab |
Add 4G swap
1 2 3 4 5 6 |
dd if=/dev/zero of=/swapfile bs=1024k count=4096 chown root:root /swapfile chmod 0600 /swapfile mkswap /swapfile swapon /swapfile echo "/swapfile swap swap defaults 0 0" >> /etc/fstab |