linux下mysql链接被防火墙阻止的解决方法
时间:2024-01-16 17:31:27
vi /etc/sysconfig/iptables
在后面添加
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
service iptables restart
发现还是不行
最终发现记录要添加在
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT 这一条前面 再次重启 OK
标签:mysql,防火墙阻止
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python正则表达式用法超详细讲解大全
2023-09-13 03:27:07
Python3爬虫中关于Ajax分析方法的总结
2021-04-07 17:28:47
![](https://img.aspxhome.com/file/2023/9/64689_0s.png)
MySQL数据库主机127.0.0.1与localhost区别
2024-01-17 17:54:24
详解Selenium+PhantomJS+python简单实现爬虫的功能
2023-03-09 01:09:00
Python输出带颜色的字符串实例
2023-08-20 05:28:03
![](https://img.aspxhome.com/file/2023/9/101719_0s.png)
python使用tkinter模块实现文件选择功能
2022-06-18 18:35:56
![](https://img.aspxhome.com/file/2023/0/115510_0s.png)
python爬虫用mongodb的理由
2023-09-27 23:06:40
运行SQL Server的计算机间移动数据库
2009-01-20 13:07:00
一些你可能不熟悉的JS知识点总结
2024-04-17 09:46:24
Django 批量插入数据的实现方法
2023-01-11 10:40:58
python实现简单tftp(基于udp协议)
2021-01-30 15:01:23
![](https://img.aspxhome.com/file/2023/9/114599_0s.jpg)
PyTorch实现更新部分网络,其他不更新
2022-06-15 21:01:33
python将人民币转换大写的脚本代码
2021-03-05 17:36:23
Python如何把多个PDF文件合并代码实例
2021-03-27 00:31:15
python scrapy框架中Request对象和Response对象的介绍
2021-04-02 07:29:59
![](https://img.aspxhome.com/file/2023/6/95326_0s.png)
Pycharm生成可执行文件.exe的实现方法
2023-07-19 12:09:54
![](https://img.aspxhome.com/file/2023/3/64273_0s.jpg)
防采集,几种觉得有用的防采集方法
2009-09-03 13:30:00
python实现删除文件与目录的方法
2023-11-12 23:34:46
python如何统计序列中元素
2022-03-04 16:32:16
python编写网页爬虫脚本并实现APScheduler调度
2021-07-07 19:23:09