1. 程式人生 > >psql: could not connect to server

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

 

[[email protected] ~]$ 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 

[[email protected] ~]$ 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,表示可能是一個網路問題,並不是目標主機的回覆。  

 

解決方案

詳細的解決方案請登入【瀚高技術支援平臺】檢視

https://support.highgo.com/#/index/docContent/5333c105d99e7a