我在我的 XP 机器上运行了 pgAdmin。网络上有一台运行 Postgres 服务器的 Centos 机器。Postgres 服务器pg_hba.conf
文件有以下几行
TYPE DATABASE USER CIDR-ADDRESS METHOD
host all all 10.0.0.68/32 trust
local mydb myuser password
local all postgres ident
host mydb myuser 10.0.0.68/32 password
host all postgres 10.0.0.68/32 trust
我的postgresql.conf
文件有以下行:
listen_address = 'localhost, 10.0.20.10'
nmap -sS 10.0.20.10
显示:
PORT STATE SERVICE
5432/tcp open postgresql
我可以通过 ssh 进入服务器上的 bash shell,但无法连接到 pgAdmin。我得到以下信息:
无法连接到服务器:没有到主机的路由(0x00002751/10065)服务器是否在主机“10.0.20.10”上运行并接受端口 5432 上的 TCP/IP 连接?
我不知道问题是什么。