php - Brew 服务无法启动
问题描述
安装后redis
我注意到services
没有激活,我有一个error
状态:
dnsmasq
nginx
php
(这是php8.x)php@7.4
redis
我已经尝试了我在互联网上找到的所有内容,包括 SO,但没有运气。
我试过了:
- 重新安装每个服务
launchctl unload
和launchctl load
-~/Library/LaunchAgents/homebrew.mxcl.dnsmasq.plist
(我已经为每项服务都试过了)brew doctor
说:你的系统准备好了。launchctl enable <service target>
但是,如果我运行sudo brew services list
一切正常,除了mysql
和php
(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.
解决方案
引导失败错误: Bootstrap failed: 5: Input/output error
该错误似乎在运行命令之前服务已经启动,start
因此运行restart
命令而不是启动命令。
喜欢:brew services restart SERVICE NAME
希望它会有所帮助。
推荐阅读
- docker - Docker overlay2 磁盘使用情况
- ios - UITableViewDelegate 无法正常工作,出现错误(致命错误:在 swift 4 中展开 UITableView 中的可选值时意外发现 nil)
- javascript - 将开始按钮添加到倒数计时器
- python - 在 Amazon SageMaker 中进行预测之前预处理输入数据
- html - 是否必须设置 cookie 和安全标志?
- javascript - 如何使用 getSelectedText() 中的文本选择进行 wrap()?
- ios - 如果不在 Swift 的内部范围内使用,闭包变量是否不会保留?
- ruby-on-rails - 如何将 GoDaddy MS-SQL 备份迁移到 Rails 应用程序
- javascript - 在表单提交时显示表格而不刷新页面
- regex - Perl 使用正则表达式捕获带有日志的组