Posts

Showing posts from May, 2018

Centos Add Swap Space

Check Free Memory free mem Enable Swap swapon -s Add swap space fallocate -l 4G /swapfile Change owner to system chmod 600 /swapfile Make the swapfile mkswap /swapfile Enable the swapfile swapon /swapfile Check again free mem Your swapfile should be there If you had problems with fallocate Use dd instead dd if=/dev/zero of=/swapfile count=4096 bs=1MiB There you go!!