Create SWAP on Linux EC2

Create SWAP on Linux EC2


Step 1: Normally, Linux EC2 default will be none k swap.


Step 2:  Create swap disk with dd command


Step 3:  Create swap image with swap disk.


Step 4:  Add to /etc/fstab to mount SWAP for reboot.


Step 5:  Activate SWAP and now we are having 1gb swap in our system.


That’s all. Thanks for using

Tags:  , ,

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>