ubuntu 22.04 (92)协议不可用:AH00076:无法启用 APR_TCP_DEFER_ACCEPT

ubuntu 22.04 (92)协议不可用:AH00076:无法启用 APR_TCP_DEFER_ACCEPT

我是 Ubuntu 新手。我的电脑上安装了 Windows 10 和 UBUNTU22.04 版本。我想安装 opencpu,当我在 Ubuntu 上输入此代码“sudo apachectl restart”时,我收到此错误:

httpd not running, trying to start
[Fri Sep 23 13:58:31.764604 2022] [core:warn] [pid 88] (92)Protocol not available: AH00076: Failed to enable APR_TCP_DEFER_ACCEPT
[Fri Sep 23 13:58:31.764848 2022] [core:warn] [pid 88] (92)Protocol not available: AH00076: Failed to enable APR_TCP_DEFER_ACCEPT
[Fri Sep 23 13:58:31.764858 2022] [core:warn] [pid 88] (92)Protocol not available: AH00076: Failed to enable APR_TCP_DEFER_ACCEPT

我想知道如何解决这个问题。

答案1

将以下内容添加到末尾/etc/apache2/apache2.conf

AcceptFilter http none
AcceptFilter https none

然后运行sudo service apache2 restart

答案2

WSL 1 不支持TCP_DEFER_ACCEPT套接字选项:

https://github.com/microsoft/WSL/issues/1953

您必须禁用它:

AcceptFilter http none
AcceptFilter https none

也可以看看https://stackoverflow.com/questions/36469527/installing-apache-on-windows-subsystem-for-linux

相关内容