apache 由于Bootstrap失败,在httpd中获取Brew服务时出错:5:输入/输出错误

rjee0c15  于 2023-10-23  发布在  Apache
关注(0)|答案(1)|浏览(208)

当我尝试brew services start httpd启动时,我得到以下错误:

  1. Bootstrap failed: 5: Input/output error
  2. Try re-running the command as root for richer errors.
  3. Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/admin/Library/LaunchAgents/homebrew.mxcl.httpd.plist` exited with 5

Mac版本是13.4.1。我打开httpd并再次安装,但它仍然会出现同样的错误。
在多次重启服务和系统后,仍然没有希望。
任何帮助将不胜感激。

ckx4rj1h

ckx4rj1h1#

此I/O错误是不明确的,可能由许多问题引起。在其他地方,你会看到检查apache日志文件所有权的建议(以防进程在写入错误日志时遇到麻烦)。Ventura要求所有的 *.so文件都是代码签名的。您需要在本地设置代码签名才能执行此操作。则命令为:
codesign --sign“YourName”--force --keychain ~/Library/Keychains/login.keychain-db /opt/homebrew/opt/php/lib/httpd/modules/libphp.so
这将允许运行libphp.so文件。

相关问题