Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 无法从节点服务器连接到postgres db_Node.js_Linux_Postgresql - Fatal编程技术网

Node.js 无法从节点服务器连接到postgres db

Node.js 无法从节点服务器连接到postgres db,node.js,linux,postgresql,Node.js,Linux,Postgresql,我想使用node posgres将我的应用程序NodeJ连接到PostgreSQL。我在linux服务器上的应用程序和我在另一台linux服务器上的postgresql的IP比为176.9.154.123 这是我的错误: 这是我的pg_hba.conf: host all all 176.9.154.123/32 trust 我可以通过将这一行添加到postgressql.conf来解决此问题: listen_address

我想使用node posgres将我的应用程序NodeJ连接到PostgreSQL。我在linux服务器上的应用程序和我在另一台linux服务器上的postgresql的IP比为176.9.154.123

这是我的错误:

这是我的pg_hba.conf:

host    all             all             176.9.154.123/32        trust

我可以通过将这一行添加到postgressql.conf来解决此问题:

listen_addresses = '*'

防火墙?连接设置?这一点信息很难说。在postgres框中增加日志详细信息…最好以文本形式发布错误消息,而不是屏幕截图(就像您使用
pg_hba.conf
)请显示代码和/或说明错误。请不要使用指向图像的链接。这个问题缺少正文。图片上的文字太小,有些人看不懂。搜索引擎无法为将来的访问者索引图像上的文本。也看到