De Wiki inetshell
Saltar a: navegación, buscar

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-memory-swap-file/

dd if=/dev/zero of=/swapfile bs=1M count=4096
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon -s
vi /etc/fstab

swap /swapfile swap defaults 0 0