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 检验端口号是否已开放