开启防火墙: systemctl start firewalld
查看防火墙状态: systemctl status firewalld
说明开启成功
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
开启防火墙: systemctl start firewalld
查看防火墙状态: systemctl status firewalld
说明开启成功
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload