From 1efe2246a7d5c634f6a4e8eb9e63ffa69b919eb1 Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Tue, 22 Aug 2023 18:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B3=E9=97=ADswap?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1-init.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/1-init.sh b/1-init.sh index 57a5cb9..bcb22ee 100644 --- a/1-init.sh +++ b/1-init.sh @@ -14,6 +14,10 @@ net.bridge.bridge-nf-call-iptables = 1 EOF sudo sysctl --system +# 关闭swap +sudo swapoff -a +sed -i 's/.*swap.*/#&/' /etc/fstab + cd ./docker && bash ./install.sh && cd .. cd ./kubeadm && bash ./install.sh && cd ..