Update rhel.sh

This commit is contained in:
midoks
2023-07-15 15:49:28 +08:00
parent 9c6faefffd
commit f62af00fb7
+3 -2
View File
@@ -107,7 +107,7 @@ if [ -f /usr/sbin/firewalld ];then
# look
# firewall-cmd --list-all
# systemctl status firewalld
echo "firewall open common port start"
if [ "$SSH_PORT" != "" ];then
firewall-cmd --permanent --zone=public --add-port=${SSH_PORT}/tcp
else
@@ -120,7 +120,8 @@ if [ -f /usr/sbin/firewalld ];then
# firewall-cmd --permanent --zone=public --add-port=3306/tcp
# firewall-cmd --permanent --zone=public --add-port=30000-40000/tcp
firewall-cmd --reload
firewall-cmd --reload
echo "firewall open common port end"
fi
$PKGMGR install -y epel-release