#开启3306端口
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
#查看防火墙状态
firewall-cmd --state
#开启/关闭防火墙
systemctl start firewalld
systemctl stop firewalld
#设置/关才开机自启
systemctl enable firewalld
systemctl disable firewalld
centos7防火墙操作备忘
最新推荐文章于 2023-09-13 02:48:13 发布