add swapoff config

Signed-off-by: haoshuwei <haoshuwei24@gmail.com>
This commit is contained in:
haoshuwei
2019-11-25 10:59:21 +08:00
parent f38ec1737d
commit c920369a90

View File

@@ -3,3 +3,6 @@
# Set timezone
timedatectl set-timezone Asia/Shanghai
# Set swap off
swapoff -a
sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab