首页 > 解决方案 > Brew 服务无法启动

问题描述

安装后redis我注意到services没有激活,我有一个error状态:

我已经尝试了我在互联网上找到的所有内容,包括 SO,但没有运气。

我试过了:

但是,如果我运行sudo brew services list一切正常,除了mysqlphp(PHP 8.x)

当我尝试单独启动每个服务时,brew services start SERVICE NAME出现以下错误。这是为了php

Bootstrap failed: 5: Input/output error

Error: Failure while executing; `/bin/launchctl bootstrap gui/501
 
/Users/mvpop/Library/LaunchAgents/homebrew.mxcl.php.plist` exited with 5.

为了能够启动服务,我想尽了办法。

任何建议将不胜感激。

谢谢!

更新 - 我刚刚删除并重新安装了所有服务,并且在尝试启动它们时遇到了同样的错误:

Bootstrap failed: 5: Input/output error

Error: Failure while executing; `/bin/launchctl bootstrap gui/501
 
/Users/mvpop/Library/LaunchAgents/homebrew.mxcl.php.plist` exited with 5.

标签: phphomebrew

解决方案


引导失败错误: Bootstrap failed: 5: Input/output error

该错误似乎在运行命令之前服务已经启动,start因此运行restart命令而不是启动命令。

喜欢:brew services restart SERVICE NAME

希望它会有所帮助。


推荐阅读