From 58a361d6e6adf720753be2dba9d10ce7c553a4fe Mon Sep 17 00:00:00 2001 From: joy Date: Wed, 29 Oct 2025 20:07:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20scripts/keepalived.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/keepalived.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/keepalived.sh b/scripts/keepalived.sh index 8669393..160c8f7 100644 --- a/scripts/keepalived.sh +++ b/scripts/keepalived.sh @@ -141,7 +141,8 @@ vrrp_instance VI_1 { EOF # 启动服务 - systemctl enable --now keepalived + systemctl enable keepalived + systemctl start keepalived if systemctl is-active --quiet keepalived; then echo "===== keepalived安装完成 =====" echo "VIP:$VIP"