【问题标题】:Brew services won't startBrew 服务无法启动
【发布时间】:2021-09-15 16:27:22
【问题描述】:

安装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>

但是,如果我运行 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.

【问题讨论】:

    标签: php homebrew


    【解决方案1】:

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

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

    点赞:brew services restart SERVICE NAME

    希望对您有所帮助。

    【讨论】:

      猜你喜欢
      • 2022-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-28
      • 2011-08-05
      • 2017-03-20
      相关资源
      最近更新 更多