尝试启动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 上遇到了同样的错误。执行了这些步骤,它有所帮助。
- 运行
rm/usr/local/var/postgresql@{YOUR_VERSION}/postmaster.pid
删除postmaster.pid
文件。这通常是由postmaster.pid
文件中的错误引起的。 - 运行
brew services stop postgresql
停止当前的 postgresql 服务。 - 最后运行
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/