From c7b35ced00b2da324e6732dcbbf93618cefbd454 Mon Sep 17 00:00:00 2001 From: huangfeng Date: Thu, 11 Apr 2024 17:08:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ncac/setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ncac/setup.sh b/ncac/setup.sh index ac65cfa..4eb85a0 100644 --- a/ncac/setup.sh +++ b/ncac/setup.sh @@ -281,6 +281,8 @@ setAutoStartNginx(){ } updateFirewall(){ + echo "更新防火墙规则." + echo "" firewall-cmd --permanent --zone=public --add-port=80/tcp firewall-cmd --permanent --zone=public --add-port=3306/tcp firewall-cmd --reload @@ -327,8 +329,6 @@ fi installNewCAC -updateFirewall - if [ $AUTO_START == 1 ]; then setAutoStartCac fi @@ -345,6 +345,8 @@ if [ $NGINX_INS == 1 ]; then setAutoStartNginx fi +updateFirewall + echo "************[install finished.]安装完成. >>>>>>>>>>>>>" echo "" sleep 1