diff --git a/scripts/haproxy.sh b/scripts/haproxy.sh index 7dd55c9..2991684 100644 --- a/scripts/haproxy.sh +++ b/scripts/haproxy.sh @@ -132,7 +132,8 @@ EOF systemctl restart rsyslog >/dev/null # 启动服务 - systemctl enable --now haproxy + systemctl enable haproxy + systemctl start haproxy if systemctl is-active --quiet haproxy; then echo "===== haproxy安装完成 =====" echo "监听:*:$HAPROXY_PORT"