我一直在try 编辑pg_hba.conf文件,以便能够仅使用IP地址访问服务器,到目前为止,还没有成功.
例如,我可以使用«localhost»进行访问,但我想使用路由给我的IP地址进行访问,该地址类似于192.168.1.十、
我是米·普格·巴.形态:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres trust
#host replication postgres 127.0.0.1/32 trust
#host replication postgres ::1/128 trust
host all all 0.0.0.0/0 trust
有什么帮助吗?