之所以写这篇文章是因为学习期间需要远程连接linux的mysql数据库,整了好久连接都是报10060错误,最后查明原因就是因为防火墙没有关闭
先查看防火墙的运行状态
systemctl status firewalld.service
如图表示防火墙正常运行
输入关闭防火墙命令
systemctl stop firewalld.service
然后查看防火墙运行状态
如图表示防火墙已经关闭
永久关闭防火墙
systemctl disable firewalld.service
执行命令之后将永久关闭防火墙