iptables防火墙限制 centos中有 firewalld selinux 还有 iptables
1、出入战规则
2、firewall
firewall-cmd --permanent --zone=public --add-port=3306/tcp --permanent
3、iptables
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

firewall-cmd --permanent --zone=public --add-port=3306/tcp --permanent
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT