Last active
March 31, 2019 03:25
-
-
Save anlotof/137251facabebcf7903b7ecd6643b4d6 to your computer and use it in GitHub Desktop.
很多人的VPS服务器由于内存太小,会导致很多进程被杀掉,这时候就需要我们添加Swap虚拟内存了,这里就整了个一键脚本方便懒人或小白使用。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 脚本 # | |
**提示:脚本不支持OpenVZ架构,安装会自动退出。** | |
运行命令: | |
> wget https://yun.94ish.me/sh/swap.sh && bash swap.sh | |
然后根据选项进行操作,记得添加swap的时候填写纯数字,默认单位为M。 | |
![](https://www.94ish.me/usr/uploads/2018/09/16768230.png) | |
本文转自https://www.moerats.com/archives/722/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment