Last Updated: November 08, 2017
·
192
· djalmaaraujo

How to add swap file to ec2 instance

sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1