我想使用远程主机登录 postgres。
我已经使用listen_addresses ='*'配置了postgresql.conf文件
我已经配置了 pg_hba.conf 文件
host all all 0.0.0.0/0 md5
Run Code Online (Sandbox Code Playgroud)
但我仍然无法登录并且看到以下错误
-bash-4.2$ psql -d sbtest -U postgres -W -h 10.54.48.59
Password:
psql: could not connect to server: Connection refused
Is the server running on host "10.54.48.59" and accepting
TCP/IP connections on port 5432?
-bash-4.2$
Run Code Online (Sandbox Code Playgroud)
没有防火墙,5432端口开放
postgresql ×1