瀏覽代碼

script to add and enable swapfile

master
Ignacio Falco 4 年之前
父節點
當前提交
c5c0d469a9
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      addswap.sh

+ 7
- 0
addswap.sh 查看文件

@@ -0,0 +1,7 @@
1
+#! /bin/bash
2
+
3
+fallocate -l 3G /swapfile && \
4
+chmod 600 /swapfile && \
5
+mkswap /swapfile && \
6
+swapon /swapfile && \
7
+swapon --show

Loading…
取消
儲存