postgresql - pgAdmin 4 无法连接到服务器:超时已过期
问题描述
我想通过远程服务器连接到 pgAdmin 4 数据库。但是,当我想保存连接属性时,我收到以下消息:
unable to connect to server: timeout expired
这是“pg_hba.conf”的内容:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all scram-sha-256
# IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256
# IPv6 local connections:
host all all ::1/128 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all scram-sha-256
host replication all 127.0.0.1/32 scram-sha-256
host replication all ::1/128 scram-sha-256
“postgresql.conf”中的listen_addresses也设置为'*'
我应该怎么做才能远程连接到服务器?
解决方案
推荐阅读
- android - JetPack Compose 禁用 BottomSheet 外部触摸
- delegates - UE4动态委托ExcuteIfBound不执行我的功能
- logging - 在日志资源管理器中合并 Google Cloud Logs 行
- html - 将我的事件查看器表转换为 HTML 表
- asp.net - Dotnet 5.0 引用不包含的子实体
- docker - 我需要帮助。为什么错误 docker-compuse,wireguard?
- python - Python 3.9: Unit testing of retrieving data from Cloud Datastore
- html - 当内容的高度发生变化时,保持项目在同一点垂直对齐
- r - 提取部分文件名并变异到列 dplyr R
- java - 在此重构之后如何启动我的 Spring Batch 应用程序: