【问题标题】:JHipster postgresql connection failJHipster postgresql 连接失败
【发布时间】:2019-07-15 17:18:06
【问题描述】:

JHipster 出现这种连接错误的原因是什么?

2019-07-15 10:11:55.643 DEBUG 30748 --- [nfoReplicator-0] org.postgresql.Driver                    : Connecting with URL: jdbc:postgresql://localhost:5432/{application_name}
2019-07-15 10:11:55.643 DEBUG 30748 --- [nfoReplicator-0] o.p.core.v3.ConnectionFactoryImpl        : Trying to establish a protocol version 3 connection to localhost:5432
2019-07-15 10:11:55.644 DEBUG 30748 --- [nfoReplicator-0] org.postgresql.Driver                    : Connection error: 

org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:280)

【问题讨论】:

    标签: postgresql connection jhipster


    【解决方案1】:

    您忘记启动 Postgresql,如果您还没有在您的 PC 上安装它,您可以使用 Docker 启动它,如https://www.jhipster.tech/docker-compose/#4 文档中所述

    docker-compose -f src/main/docker/postgresql.yml up
    

    【讨论】:

      猜你喜欢
      • 2020-03-12
      • 2021-02-19
      • 2019-01-14
      • 2021-03-23
      • 2019-10-14
      • 1970-01-01
      • 1970-01-01
      • 2020-08-24
      • 1970-01-01
      相关资源
      最近更新 更多