# Taken from http://steinn.org/post/elasticbeanstalk-swap/
sudo su
dd if=/dev/zero of=/var/swapfile bs=1M count=2048 # create a 2GB file of 0's
mkswap /var/swapfile
swapon /var/swapfile
chmod 600 /var/swapfile
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.