laravel - Vagrant Homestead 没有与 PostgresSql 连接
问题描述
在 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?
任何人都可以分享一些关于在哪里查找错误的指示吗?
解决方案
连接被拒绝意味着您尝试连接的端口实际上并未打开。刚刚重新阅读文档https://laravel.com/docs/6.x/homestead#ports 所以我想在你的本地机器上尝试 54320 端口。
推荐阅读
- firebase - 如何连接 react native saga 以响应原生 firebase
- r - 用 r 创建一个伪随机列表
- mysql - Java 中的 SQLSyntaxErrorException。奇怪的问题
- vb.net - 从子程序返回多条记录并解析成数据表 [Unidata][U2.NET]
- python - 以有组织的方式从网站获取信息
- python - asyncio + asyncpg + pandas:从 db 中获取带有异步选择的 pandas.df - 错误
- c# - 无法隐式转换类型 System.Collections.Generic.List
到 System.Collections.Generic.List - javascript - jQuery拖放适用于文件,但不适用于文件夹
- django - 推荐系统的 Models.py
- google-street-view - 谷歌街景全景之间的多个箭头标记问题