我在Windows 8 PC上的vmware上安装了CentOS 7。我可以通过主机上的F-secure连接,但是我无法将我的pgAdmin连接到我在CentOS 7上安装的Postgres 9.6。
答案 0 :(得分:4)
你可以通过登录然后使用来从postgres中提问
像这样 SHOW config_file;
:
postgres=# SHOW config_file;
config_file
------------------------------------------
/etc/postgresql/9.6/main/postgresql.conf
(1 row)
this link可能会对您有所帮助。
答案 1 :(得分:2)
也许这对你有用
# /var/lib/pgsql/9.x/data/pg_hba.conf
host all all 0.0.0.0/0 md5
# vi /var/lib/pgsql/9.x/data/postgresql.conf
listen_addresses = '*'
# sudo systemctl restart postgresql-9.x.service
希望获得此帮助,或者您可以打开此link