python-3.x - 服务器意外关闭连接python
问题描述
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
当我使用 docker exec 运行时...
psql: error: could not connect to server: could not translate
host name "potgres" to address: No address associated with hostname
我的端口看起来像这样:
0.0.0.0:5431->5431/tcp, 5432/tcp
即使我在 file.yml 更改端口号,也没有任何反应!
解决方案
您确定您的主机名拼写正确吗?
psql:错误:无法连接到服务器:无法将主机名“potgres”转换为地址:没有与主机名关联的地址
看起来您将 postgres 拼错为 potgres。
推荐阅读
- unity3d - DoTween DoPath 在航路点之间的速度
- python - 获取“ImportError:无法导入名称 register_translation”
- docker - 如何将 openshift 上 pod 容器的文件系统复制到我的本地计算机?
- java - 在 Jersey (HK2) 中按名称动态查找服务
- kdb - 为什么 kdb+tick 中的第一列不能是字符串类型
- java - 自定义列表视图文本颜色未更改
- url - Drupal 7,通过 URL 打开 Accordion 选项卡
- java - 比较java中的两个大列表(超过100k)
- spring-boot - 我想从eclipse登录openshift
- regex - 如何标记命名实体以准备训练数据以使用 spacy 进行自定义命名实体识别?