我有一个苹果M1使用macOS蒙特利,我正在尝试安装MongoDB社区的最新版本。在跟踪网站上的文档之后,我收到了这条错误消息(注意:我使用的是罗塞塔终端,因为M1芯片不支持自制)。有人知道这个错误发生了什么吗?请帮帮忙。
我试过的是:
Already downloaded: /Users/katejohnson/Library/Caches/Homebrew/downloads/5bd79f1c70119d0cda4b01fc074ad77ad00a7e8dfc9b243016157d9ee7009874--mongosh-1.3.1.bottle_manifest.json
(见终端屏幕截图)。 brew services start mongodb-community@5.0
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/katejohnson/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist` exited with 5.
发布于 2022-07-02 07:54:25
重新启动macOS。运行brew services start mongodb-community@5.0
。它应该能解决问题!
问题在于.plist
文件需要出现在LaunchAgents
目录中,以便launchctl
在启动时运行mongod服务。
https://stackoverflow.com/questions/71702273
复制相似问题