Snippets

Realhub Systems Create Linux Swap File

Created by Accounts Realhub
1
2
3
4
5
6
7
# 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)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.