systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --permanent --zone=public --add-port=3306/tcp 开放3306端口
firewall-cmd --zone=public --query-port=3306/tcp 检验端口号是否已开放
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --permanent --zone=public --add-port=3306/tcp 开放3306端口
firewall-cmd --zone=public --query-port=3306/tcp 检验端口号是否已开放
本文标题:centOS 7防火墙基本操作
本文链接:https://www.haomeiwen.com/subject/dzbsfxtx.html
网友评论