【问题标题】:如何解决无法识别当前目录:权限被拒绝
【发布时间】:2022-01-23 14:16:42
【问题描述】:

我会运行 postgreSQl,但是当我启动 pg_start 时出现此错误

`could not identify current directory: Permission denied
 could not identify current directory: Permission denied
 could not identify current directory: Permission denied
 The program "postgres" is needed by pg_ctl but was not found in the
 same directory as "pg_ctl".
 Check your installation.`

我尝试了很多方法,例如 pg_ctl -D /usr/local/var/postgres startbrew services restart postgresqlbrew search "postgresql". ,我曾经使用 brew install --cask navicat-for-postgresql 更新 Homebrew,但仍然出现错误。

【问题讨论】:

    标签: javascript sql reactjs


    【解决方案1】:

    我在升级我的 postgres 后解决了这个问题。

    brew upgrade postgresql
    

    【讨论】:

    • 还是不行。我收到No available formula with the name "postgresql".
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-10-01
    • 2013-11-10
    • 1970-01-01
    • 2020-03-08
    • 2021-05-24
    • 1970-01-01
    相关资源
    最近更新 更多