iptables:
启动:
systemctl start iptables
systemctl restart iptables
systemctl status iptables
iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 开发3306端口
service iptables save
firewalld:
systemctl status firewalld
systemctl status firewalld.service
firewall-cmd --zone=public --add-port=80/tcp --permanent 开发80端口