mac m1 机器。
brew services start httpd抛出异常。
bootstrap failed: 5: input/output error.
failure while executing /bin/lauchctl bootstrap gui/501 *****/homebrew.mxcl.httpd.plist exited with 5.
尝试去看了下log
/opt/homebrew/var/log/httpd/ 目录下有error_log, access_log.
error_log里的log信息是
感觉log里没什么有效信息。
网上搜了下,尝试了很多方法,
比如
brew uninstall htttpd
后重新安装httpd,再启动httpd。失败。
比如
/opt/homebrew/opt/httpd/bin/apachectl stop
后再start httpd,失败。
比如
unload homebrew.mxcl.httpd.plist后,再load它,然后再启动httpd,失败。
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist
brew services start httpd
比如
直接重新安装httpd
brew reinstall $(brew deps httpd)
brew reinstall httpd
失败。
以上的每一个方案据说都有成功案例,但是对我都无济于事。
我的最后的成功方案是:
brew services stop httpd
sudo apachectl -k stop
brew services start httpd
希望对你有帮助。