【文件属性】:
文件名称:digitalocean-make-swap-on-ubuntu:在 Ubuntu 上快速添加 SWAP
文件大小:1KB
文件格式:ZIP
更新时间:2021-07-03 19:36:30
Shell
关于
基于脚本,用于在 Ubuntu 上快速添加 SWAP。
用法
cd /tmp
wget https://raw.githubusercontent.com/igormukhingmailcom/digitalocean-make-swap-on-ubuntu/master/make-swap.sh
chmod a+x make-swap.sh
sudo ./make-swap.sh /swapfile 4G
free # Check result
rm make-swap.sh