小编cla*_*ant的帖子

无法从Redash连接到本地主机

我正在尝试从Redash连接到本地Postgres。(都来自redash.io和http://0.0.0.0:5000/),但无法连接到它。我可以连接本地主机的其他工具,但是从Redash中我得到了错误:

 Connection Test Failed:
 could not connect to server: Connection refused Is the server running 
 on host "localhost" (::1) and accepting TCP/IP connections on port 
 5432? could not connect to server: Connection refused Is the server 
 running on host "localhost" (127.0.0.1) and accepting TCP/IP 
 connections on port 5432?
Run Code Online (Sandbox Code Playgroud)

任何想法可能是什么问题?我将docker用于我的本地Redash,这可能会导致问题,但是我也从redash.io中得到了相同的错误。

这是我的docker-compose文件:

# This configuration file is for **development** setup. For production, refer to
# docker-compose.production.yml.
version: '2'
services:
  server:
    build: .
    command: dev_server
    depends_on:
      - postgres
      - redis
    ports: …
Run Code Online (Sandbox Code Playgroud)

postgresql redash

1
推荐指数
1
解决办法
1114
查看次数

标签 统计

postgresql ×1

redash ×1