当我尝试brew services start httpd
启动时,我得到以下错误:
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
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并再次安装,但它仍然会出现同样的错误。
在多次重启服务和系统后,仍然没有希望。
任何帮助将不胜感激。
1条答案
按热度按时间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文件。