其他计算机甚至无法在我的 Windows 7 机器上找到正在运行的 Postgresql 9.1。本地连接当然工作得很好。
在我的 pg_hba.conf 我有:
#office subnets
host all all 192.168.##.0/24 md5
host all all 192.168.##.0/24 md5
Run Code Online (Sandbox Code Playgroud)
在 postgresql.conf 我有(是的,端口 5433 是故意的):
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
# (change requires restart)
port = 5433 # (change requires restart)
Run Code Online (Sandbox Code Playgroud)
在netstat -a -b
cmd 中运行后,我发现:
Can not obtain ownership information
TCP 0.0.0.0:5433 XXXXX-PC:0 LISTENING
Run Code Online (Sandbox Code Playgroud)
哎呀,我什至做了一个防火墙例外:
Protocols and Ports:
Local port: …
Run Code Online (Sandbox Code Playgroud)