psql: could not connect to server

环境
系统平台:N/A
版本:4.1.1
症状

使用psql远程连接数据库报错:Connection refused  和 No route to host。

1、psql: could not connect to server: Connection refused

[highgo@hgdb ~]$ psql -h 192.168.10.123 -p 5866

psql: could not connect to server: Connection refused

      Is the server running on host "192.168.10.123" and accepting  TCP/IP connections on port 5866?

2、psql: could not connect to server:No route to host 

[highgo@hgdb ~]$ psql -h 192.168.10.123 -p 5866

psql: could not connect to server: No route to host

      Is the server running on host "192.168.10.123" and accepting      TCP/IP connections on port 5866?

问题原因

出现报错Connection refused,表示目标主机明确拒绝了这次连接。

出现报错No route to host,表示可能是一个网络问题,并不是目标主机的回复。  

解决方案

详细决方案请登录【瀚高技术支持平台】查看

瀚高技术支持平台

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值