首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误:执行时失败;‘/bin/launchctl引导引导gui/501 /Users/josh/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist`与5一起退出

错误:执行时失败;‘/bin/launchctl引导引导gui/501 /Users/josh/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist`与5一起退出
EN

Stack Overflow用户
提问于 2022-11-08 17:34:08
回答 3查看 1.8K关注 0票数 3

尝试启动postgresql时

代码语言:javascript
运行
复制
➜  ~ brew services start postgresql
Warning: Use postgresql@14 instead of deprecated postgresql
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/josh/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist` exited with 5.

在运行brew服务列表时获取“错误”作为状态

代码语言:javascript
运行
复制
➜  ~ brew services list
Name          Status     User File
postgresql@14 error  256 root ~/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist

PSQL运行得非常好,关闭了我的笔记本电脑(没有更新),第二天当我打开它时,psql没有工作。我在OSX版本12.6 (蒙特雷)上。

EN

回答 3

Stack Overflow用户

发布于 2022-11-09 13:57:23

今天我的13.0也犯了同样的错误。做了这些步骤,这很有帮助。

  1. 运行rm /usr/local/var/postgresql@{YOUR_VERSION}/postmaster.pid以删除postmaster.pid文件。这通常是由postmaster.pid文件中的错误引起的。
  2. 运行brew services stop postgresql以停止当前的postgresql服务。
  3. 最后运行brew services start postgresql,将生成一个新的postmaster.pid文件。

G 213

如果这不起作用,您可以运行brew doctor并查看它是否会返回Your system is ready to brew。如果有警告,你可以在这里与社区分享更多细节。

票数 1
EN

Stack Overflow用户

发布于 2022-11-09 15:41:26

我在M1 pro上做了同样的13.0版本,全部都是brew services restart postgresql@14,它关闭,重新启动,运行良好,问题消失了。

票数 1
EN

Stack Overflow用户

发布于 2022-11-16 18:38:03

有同样的问题,但不能让Postgres 14工作,最后只是升级到Postgres 15,这是我的工作。

步骤如下(版本号可能有所不同)

代码语言:javascript
运行
复制
brew services stop postgresql@14
brew install postgresql@15
# This command will copy data over to the new database
brew /opt/homebrew/Cellar/postgresql@15/15.1/bin/pg_upgrade -b /opt/homebrew/Cellar/postgresql@14/14.6/bin/ -d /opt/homebrew/var/postgres/ -D /opt/homebrew/var/postgresql@15/
brew services start postgresql@15
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74364934

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档