pg2.OperationalError: could not connect to server: Connection timed out (0x0000274C/10060)
问题描述:
解决办法:
关闭selinux和服务器
具体步骤:
[root@localhost /]# getenforce
Disabled
[root@localhost /]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@localhost /]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:23
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:23
3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
4 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
5 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
6 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
7 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
[root@localhost /]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@localhost /]# service iptables status
iptables: Firewall is not running.
[root@localhost /]# chkconfig --list |grep iptables
iptables 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
[root@localhost /]# chkconfig iptables off
[root@localhost /]# chkconfig --list |grep iptables
iptables 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
[root@localhost /]#
附图:
到此问题解决。。。
pg2.OperationalError: could not connect to server: Connection timed out (0x0000274C/10060)相关推荐
- could not connect to server: Connection timed out (Ox0000274C/10060)ls the server running on host “
PostgreSQL安装后Navicat客户端连接报错如下: 主要注意两个方面:是否开启了远程访问.是否开启了防火墙或配置了防火墙白名单. 检查是否开启了远程访问 1.修改/var/lib/pgsql ...
- Navicat客户端PostgreSQL连接报错:Could not connect to server:Connection refused(0x00002740/10061)
Navicat客户端PostgreSQL连接报错:Could not connect to server:Connection refused(0x00002740/10061) 遇到这样的问题应该怎 ...
- PostgreSQL连接报错:could not connect to server: Connection refused (0x0000274D/10061)
问题描述: Win10系统更新后,启动项目,显示拒绝连接.之后打开pgAdmin登录操作,但失败了!并显示错误信息. could not connect to server: Connection r ...
- 无法连接到数据库服务器 could not connect to server: Connection refused
打开pgadmin 文件- 打开pgpass.conf 把不认识的网址 not active 转载于:https://www.cnblogs.com/tank-/p/8494450.html
- 解决PostgreSQL远程访问报错could not connect to server:Connection refused (0x0000274D/10061)
先将postgresql服务关闭,执行C:\Windows\System32>net stop PostgreSQL 想让postgresql支持远程访问的话需要借助自带图形化工具pgAdmin ...
- LoadRunner Error -27792: Failed to connect to server
用Google打开,replay的时候报错 Action.c(74): Error -27792: Failed to connect to server "accounts.google. ...
- PostgreSQL无法连接Server(报错could not connect to server)
使用navicat连接本地PostgreSQL数据库时报错: could not connect to server: Connection refused (0x0000274D/10061) Is ...
- 记录redis Connection timed out处理(关于THP的处理)
记录redis "Connection timed out"处理 最近程序报错:Failed to connect to redis: Connection timed out 发 ...
- Error -27796: Failed to connect to server ip地址: [10060] Connection timed out
如果出现Error -27796: Failed to connect to server "ip地址": [10060] Connection timed out 这样的错误,如 ...
最新文章
- P4factory ReadMe Quickstart 安装p4factory
- 自动混合精度(AMP)介绍与使用【Pytorch】
- ajax请求php保存数据格式,jQuery ajax与php进行数据交互(数据格式问题)
- Py之Seaborn:数据可视化Seaborn库的柱状图、箱线图(置信区间图)、散点图/折线图、核密度图/等高线图、盒形图/小提琴图/LV多框图的组合图/矩阵图实现
- sql语句or与union all的执行效率比较
- 机械之家再获3000万A+轮投资,58产业基金领投
- 用dataGridView实现增删改查
- P4127 [AHOI2009]同类分布(数位dp)
- Visual Studio 2012中使用GitHub
- MathCAD求解方程组
- 12 - java 类加载内存图
- Python基础学习笔记三
- 2020-爬虫技术ftx
- 自制 os 极简教程1:写一个操作系统有多难
- ai可以滚轮缩放吗_Illustrator CC for MAC按住alt键滑动鼠标无法缩放?
- 微信号可以一年内第二次修改技巧吗?
- C语言解决狐狸找兔子的问题(数组)
- 3w 字长文爆肝 Java 基础面试题!太顶了!!!
- 商户号与商户appid不匹配
- 代码阅读总结之Fitch and Mather 7.0(资源文件Resource随笔)
热门文章
- [经验教程]拼多多申请退货退款多久可以到账及退款到帐微信支付宝银行卡时间?
- Google镜像站点 资源收集
- proe常用c语言语句,proe关系式(大全).doc
- 找高清图片素材,这8个网站就够了
- cad2016中选择全图字体怎么操作_CAD镜像怎么用,你会吗?
- 入手python难不难_Python难不难?容易学吗?
- Vue官网提供表单验证cnpm i vee-validate@2 --save
- 智安网络丨DDoS攻击:无限战争
- 测试人员花样甩锅技巧
- 【零基础深度学习教程第一课:深度学习基础】