Bootstrap failed: 5: Input/output error Error: Failure while



请帮助我解决方案,因为我正试图通过brewmac M1 air上安装mongodb

给我这个错误

Bootstrap failed: 5: Input/output error
Error: Failure while executing;
/bin/launchctl bootstrap gui/501 /Users/shrirajdesai/Library/LaunchAgents/homebrew.mxcl.mongodb-community@4.2.plist
exited with 5.

当我试图运行brew services restart postgresql时,我有一个类似的错误,我得到了这个错误:

Bootstrap failed: 5: Input/output error
Error: Failure while executing; /bin/launchctl bootstrap gui/501 /Users/user/Library/LaunchAgents/homebrew.mxcl.postgresql.plist exited with 5.

这个解决方案为我工作:啤酒服务。无法启动服务。输入/输出错误">

在我的情况下,我用postgresql代替了mongodb-community。我目前运行macOS 11.6.2大苏尔版本。