欢迎来到   

帮助中心

搜索热词:服务器托管vps找回密码发票申请虚拟主机

      linux7.6 开放端系统端口,常用命令
 

使用firewall模式



查看

root@lch software]# firewall-cmd --get-active-zones



开放3306端口

[root@lch software]# firewall-cmd --zone=public --add-port=3306/tcp --permanent



重启防火墙

[root@lch software]# firewall-cmd --reload



查看是否启用

[root@lch software]# firewall-cmd --query-port=3306/tcp