Update rhel.sh

This commit is contained in:
midoks
2023-07-15 15:51:03 +08:00
parent 60ddb13f8e
commit 274592229e
+1 -1
View File
@@ -89,6 +89,7 @@ echo "SSH PORT:${SSH_PORT}"
# echo "iptables wrap start"
echo "firewall open common port start"
if [ ! -f /usr/sbin/firewalld ];then
$PKGMGR install firewalld -y
systemctl enable firewalld
@@ -103,7 +104,6 @@ if [ ! -f /usr/sbin/firewalld ];then
systemctl restart firewalld
fi
echo "firewall open common port start"
if [ -f /usr/sbin/firewalld ];then
# look
# firewall-cmd --list-all