【问题标题】:Vagrant Homestead is not connecting with PostgresSqlVagrant Homestead 没有与 Postgresql 连接
【发布时间】:2021-10-29 13:52:33
【问题描述】:

在 Vagrant Homestead 中连接 psql 时出现以下错误:

psql: error: 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?

谁能分享一些关于在哪里查找错误的指示?

【问题讨论】:

    标签: laravel postgresql vagrant homestead


    【解决方案1】:

    连接被拒绝意味着您尝试连接的端口实际上并未打开。 刚刚重新阅读了文件https://laravel.com/docs/6.x/homestead#ports 所以我想在你的本地机器上尝试 54320 端口。

    【讨论】:

    • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2014-11-26
    • 2017-07-14
    • 2017-07-16
    • 1970-01-01
    • 1970-01-01
    • 2018-09-17
    • 1970-01-01
    • 1970-01-01
    • 2020-04-18
    相关资源
    最近更新 更多