Questions tagged «qgis»

10
允许Docker容器连接到本地/主机Postgres数据库
我最近一直在研究Docker和QGIS,并按照本教程中的说明安装了一个容器。 尽管我无法连接到包含我的所有GIS数据的localhost postgres数据库,但一切工作都很好。我认为这是因为我的postgres数据库未配置为接受远程连接,并且已经按照本文中的说明编辑了postgres conf文件以允许远程连接。 尝试连接到在Docker中运行QGIS的数据库时,我仍然收到错误消息:无法连接到服务器:Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections to port 5433? postgres服务器正在运行,并且我编辑了pg_hba.conf文件以允许从以下范围进行连接IP地址(172.17.0.0/32)。我以前使用来查询docker容器docker ps的IP地址,尽管IP地址已更改,但到目前为止,它始终在172.17.0.x范围内 有什么想法为什么我无法连接到该数据库?我想可能很简单! 我正在运行Ubuntu 14.04;Postgres 9.3
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.