在Node中通过本地连接服务器postgresql数据库时面临ETIMEDOUT

问题描述 投票:0回答:0
Error connecting to PostgreSQL database Error: connect ETIMEDOUT **.**.**.**:5432
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
  errno: -4039,
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: 'myIpAddress',
  port: 5432
}

我已经更改了 PostgreSQL 配置文件“postgresql.conf”和“pg_hba.conf”以接受请求,但仍然遇到同样的问题。

javascript node.js postgresql postgresql-9.1
© www.soinside.com 2019 - 2024. All rights reserved.