更新 scripts/keepalived.sh

This commit is contained in:
joy 2025-10-29 20:07:49 +08:00
parent 6cf96af110
commit 58a361d6e6
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,8 @@ vrrp_instance VI_1 {
EOF EOF
# 启动服务 # 启动服务
systemctl enable --now keepalived systemctl enable keepalived
systemctl start keepalived
if systemctl is-active --quiet keepalived; then if systemctl is-active --quiet keepalived; then
echo "===== keepalived安装完成 =====" echo "===== keepalived安装完成 ====="
echo "VIP$VIP" echo "VIP$VIP"