增加关闭swap操作

This commit is contained in:
zhanglikun 2023-08-22 18:54:45 +08:00
parent 086e56c48e
commit 1efe2246a7

View File

@ -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 ..