Linux

AWS linux swap setting memo

More than 1 year has passed since last update.

2GB swap file setting

sudo dd if=/dev/zero of=/swapfile1 bs=1M count=2048
sudo chmod 600 /swapfile1
sudo mkswap /swapfile1
sudo swapon /swapfile1