关于基于脚本,用于在Ubuntu上快速添加SWAP

用法

  1. cd /tmp

  2. wget https://raw.githubusercontent.com/igormukhingmailcom/digitalocean-make-swap-on-ubuntu/master/make-swap.sh

  3. chmod a+x make-swap.sh

  4. sudo ./make-swap.sh /swapfile 4G

  5. free # 检查结果

  6. rm make-swap.sh