FYI:AWS t2.micro 实例太小,至少使用 t2.small

Also, how big was the swapfile you created?