1. 首页
  2. 考试认证
  3. 其它
  4. 在Ubuntu上快速添加SWAP空间

在Ubuntu上快速添加SWAP空间

上传者: 2024-12-12 20:27:06上传 ZIP文件 1.25KB 热度 3次

关于基于脚本,用于在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

下载地址
用户评论