postgresql - 错误 : Failure while executing; `/bin/launchctl bootstrap gui/501/Users/josh/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist` exited with 5

标签 postgresql macos homebrew

尝试启动postgresql时

➜  ~ 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 services list 时出现“错误”状态

➜  ~ brew services list
Name          Status     User File
postgresql@14 error  256 root ~/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist

PSQL 工作得很好,关闭我的笔记本电脑(没有更新),第二天当我打开它时 psql 不工作。我使用的是 OSX 版本 12.6 (Monteray)。

最佳答案

今天 🤓 在我的 Mac Ventura 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文件。

如果这不起作用,您可以运行 brew doctor 并查看它是否会返回 您的系统已准备好 brew 。如果有警告🥶,您可以在此处与社区分享以获取更多详细信息。?

关于postgresql - 错误 : Failure while executing; `/bin/launchctl bootstrap gui/501/Users/josh/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist` exited with 5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74364934/

相关文章:

mysql - Apple Silicon 上的 Rails 和 MySQL

sql - 使用等级窗口函数的 Postgres UPDATE

node.js - Sequelize [object SequelizeModel] 保存不是函数

sql - 按小时间隔计数

c++ - Eclipse 朱诺 CDT 错误 : No rule to make target `all'

macos - Mac 64 位编译器常量

node.js - Homebrew:在 node@8 旁边安装最新的 npm 版本

ruby-on-rails - 可追溯的匿名重复记录

php - 48)地址已在使用:AH00072:make_sock:无法绑定(bind)到地址[::]:80

permissions - 无法安装 HomeBrew,出现 "illegal user name"错误