1.查看防火墙操作
>systemctl status firewalld
2.暂时打开/关闭防火墙
#启动 >systemctl start firewalld #关闭 >systemctl stop firewalld
3.永久打开/关闭防火墙
#打开 >systemctl enable firewalld #关闭 >systemctl disable firewalld #重启后生效 >reboot
4.开放端口
firewall-cmd --zone=public --add-port=3306/tcp --permanent firewall-cmd --reload
来源:CSDN
作者:liu1251303815
链接:https://blog.csdn.net/liu1251303815/article/details/103575241