代码之家  ›  专栏  ›  技术社区  ›  Bla...

Heroku PostgreSQL无法连接到服务器:连接超时

  •  0
  • Bla...  · 技术社区  · 7 年前

    我正在尝试使用 heroku pg:psql postgresql-rigid-33416 --app murmuring-ocean-62645 ,但是我收到了这个消息

    --> Connecting to postgresql-rigid-33416
    psql: could not connect to server: Connection timed out (0x0000274C/10060)
            Is the server running on host "ec2-50-17-225-140.compute-1.amazonaws.com" (50.17.225.140) and accepting
            TCP/IP connections on port 5432?
    

    我试图关闭防火墙,但问题仍然存在。知道怎么解决这个问题吗?

    编辑:

    heroku version
    heroku/7.16.0 win32-x64 node-v10.10.0
    
    heroku pg:info
    === DATABASE_URL
    Plan:                  Hobby-dev
    Status:                Available
    Connections:           0/20
    PG Version:            10.5
    Created:               2018-10-09 14:03 UTC
    Data Size:             7.6 MB
    Tables:                0
    Rows:                  0/10000 (In compliance)
    Fork/Follow:           Unsupported
    Rollback:              Unsupported
    Continuous Protection: Off
    Add-on:                postgresql-rigid-33416
    
    0 回复  |  直到 7 年前
        1
  •  0
  •   olucube.com    7 年前

    以防别人有这个问题。我也有同样的问题。我不得不通过将本地计算机上的防火墙级别更改为“低”来降低网络安全性,这样就可以工作了。