Brew 服务无法启动

Mar*_*Pop 6 php homebrew

安装后redis,我注意到它们services不处于活动状态,并且我的状态error为:

  • dnsmasq
  • nginx
  • php(即 php8.x)
  • php@7.4
  • redis

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

我试过:

  • 重新安装每个服务
  • launchctl unloadlaunchctl load- ~/Library/LaunchAgents/homebrew.mxcl.dnsmasq.plist(我已经为每项服务尝试过这个)
  • brew doctor说:你的系统已准备好酿造。
  • launchctl enable <service target>

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

当我尝试单独启动每个服务时,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.
Run Code Online (Sandbox Code Playgroud)

我不知道可以尝试什么来启动服务。

任何建议将不胜感激。

谢谢!

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

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.
Run Code Online (Sandbox Code Playgroud)

小智 5

我在代客安装时收到了同样的错误。我使用的步骤顺序是...

  1. 代客停车
  2. 酿造取消链接 php@7.3 php@7.4 php
  3. 酿造链接--force--overwrite php@8.2
  4. 啤酒服务停止PHP
  5. 启动brew服务 php@8.2
  6. 作曲家全局更新
  7. rm -f ~/.config/valet/valet.sock
  8. 代客安装

我认为第四步可以解决问题。不知何故,当取消链接时,brew无法自动停止服务。