JHipster postgresql 连接失败

JHipster postgresql connection fail

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,如果您尚未在您的 PC 上安装它,您可以使用 Docker 启动它,如 https://www.jhipster.tech/docker-compose/#4

的文档中所述
docker-compose -f src/main/docker/postgresql.yml up