尝试启动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服务列表时获取“错误”作为状态
➜ ~ brew services list
Name Status User File
postgresql@14 error 256 root ~/Library/LaunchAgents/homebrew.mxcl.postgresql@14.plist
PSQL运行得非常好,关闭了我的笔记本电脑(没有更新),第二天当我打开它时,psql没有工作。我在OSX版本12.6 (蒙特雷)上。
发布于 2022-11-09 13:57:23
今天我的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
文件。G 213
如果这不起作用,您可以运行brew doctor
并查看它是否会返回Your system is ready to brew
。如果有警告,你可以在这里与社区分享更多细节。
发布于 2022-11-09 15:41:26
我在M1 pro上做了同样的13.0版本,全部都是brew services restart postgresql@14
,它关闭,重新启动,运行良好,问题消失了。
发布于 2022-11-16 18:38:03
有同样的问题,但不能让Postgres 14工作,最后只是升级到Postgres 15,这是我的工作。
步骤如下(版本号可能有所不同)
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
https://stackoverflow.com/questions/74364934
复制相似问题