Skip to content

Instantly share code, notes, and snippets.

@rodrigodiez
Created February 11, 2013 11:18
Show Gist options
  • Save rodrigodiez/4753926 to your computer and use it in GitHub Desktop.
Save rodrigodiez/4753926 to your computer and use it in GitHub Desktop.
Create a swap space into an Amazon EC2 Micro instance in order to prevent memory exceptions
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment