How to add swap to and Amazon EC2 instance running Ubuntu 12.04 LTS?

后端 未结 5 1900
迷失自我
迷失自我 2021-02-04 19:08

default Ubuntu 12.04 LTS doesn\'t create swap for some reason. Is there \"proper\" way to add it after install?

root@aux3:/root# df -h
Filesystem      Size  Used Avai         


        
5条回答
  •  不思量自难忘°
    2021-02-04 19:40

    To enable swap at the boot time (after creating the swap file as per the instructions above), add the following entry to /etc/fstab:

    /mnt/swap1 swap swap defaults 0 0
    

提交回复
热议问题