2003

阿里云防火墙原因

0.放开3306防火墙,然后重启.

firewall-cmd --zone=public --add-port=3306/tcp --permanent
systemctl restart firewalld 

  

1.关闭防火墙

systemctl stop firewalld 

  

2.开启防火墙

systemctl start firewalld 

  

3.检查防火墙状态

systemctl status firewalld 

防火墙相关命令:

https://www.cnblogs.com/yuanzipeng/p/10813494.html

原文地址:https://www.cnblogs.com/winyh/p/14263166.html