centos7 firewall 防火墙开放指定端口

firewall 开放3306  默认的mysql 端口

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

firewall-cmd  --reload  重新加载以生效