How to add swap to AWS EC2/Lightsail Amazon Linux instance
To add swap to an Amazon Linux EC2 or Lightsail instance on AWS, you can use the following steps: Connect to your instance via SSH. Check if there is any existing swap partition by running the command sudo swapon –show If there is no existing swap partition, create a new one by running the command … Read more