1.查看防火墙状态
systemctl status firewalld
2.开启防火墙
systemctl start firewalld
3.设置端口
firewall-cmd --permanent --zone=public --add-port=3306/tcp
4.关闭防火墙
systemctl stop firewalld
1.查看防火墙状态
systemctl status firewalld
2.开启防火墙
systemctl start firewalld
3.设置端口
firewall-cmd --permanent --zone=public --add-port=3306/tcp
4.关闭防火墙
systemctl stop firewalld