If you want incrase 2 GB of swap then follow below Steps
dd if=/dev/zero of=/swapfile bs=1024 count=2097152
#mkswap /swapfile
#swapon /swapfile
#swapon -s
check the swap file
#cat /proc/swaps
If you want parmanent then add line in fstab file
#vi /etc/fstab
/swapfile none swap sw 0 0
save the file and check with free commands
#free
dd if=/dev/zero of=/swapfile bs=1024 count=2097152
#mkswap /swapfile
#swapon /swapfile
#swapon -s
check the swap file
#cat /proc/swaps
If you want parmanent then add line in fstab file
#vi /etc/fstab
/swapfile none swap sw 0 0
save the file and check with free commands
#free
Comments
Post a Comment