CentOS7 防火墙设置

查看防火墙

firewall-cmd -–list-all


开启3306端口(MySQL)

firewall-cmd -–permanent -–add-port=3306/tcp


重启防火墙

service firewalld restart
原文地址:https://www.cnblogs.com/Currention/p/11147635.html