Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 984 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 984 Bytes

Linux一键开启swap脚本

运行本脚本将会自动开启3GB的swap空间,并设置开机自动开启。

使用方法

一键脚本:

wget -N --no-check-certificate https://raw.githubusercontent.com/aquasofts/swap/main/swap.sh && chmod +x swap.sh && ./swap.sh

若位于您的机器位于中国内地,可使用以下命令:

wget -N --no-check-certificate https://raw.gitcode.com/aquasofts/swap/raw/main/swap.sh && chmod +x swap.sh && ./swap.sh

啰嗦一句

1.脚本未加密。里面每个功能都注释的很清楚,不存在任何安全问题,请放心使用。脚本写的很烂有大佬愿意可以提交修改!~

2.本脚基本适用于大部分Linux系统,包括Ubuntu、Debian等。

3.本脚默认为3GB,如需修改请自行修改脚本。

4.本脚本为简单逻辑脚本,大佬可跳过。

5.如果此脚本对您有帮助,不妨点一个star支持一下,让更多人受到帮助