【问题标题】:Get this result back when putting `postgres -D /usr/local/var/postgres` in terminal将 `postgres -D /usr/local/var/postgres` 放入终端时获取此结果
【发布时间】:2015-11-01 04:13:25
【问题描述】:

当我将postgres -D /usr/local/var/postgres 输入终端时,我得到了回复:

日志:无法将主机名“localhost”、服务“5432”转换为地址:提供节点名或服务名,或未知
警告:无法为“localhost”创建监听套接字
致命:无法创建任何 TCP/IP 套接字`

有人可以帮我解决这个问题吗?

【问题讨论】:

  • 我必须清理我的 etc/hosts 文件,那里有很多乱七八糟的东西,然后我得到了致命:无法打开目录“pg_tblspc”:没有这样的文件或目录,但这是很容易解决以下问题:stackoverflow.com/questions/25970132/…

标签: postgresql osx-yosemite


【解决方案1】:

检查您的 /etc/hosts 文件是否缺少行:

127.0.0.1 localhost.localdomain 本地主机

问候

H

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-28
    • 2021-06-19
    • 1970-01-01
    • 2020-04-13
    • 2013-07-05
    • 1970-01-01
    相关资源
    最近更新 更多