brew services start httpd 出错

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

希望对你有帮助。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值