【发布时间】:2017-09-15 07:14:30
【问题描述】:
当我尝试从 WSL 启动 apache2 时出现以下错误:
➜ ~ sudo service apache2 start
* Starting Apache httpd web server apache2
*
* The apache2 configtest failed.
Output of config test was:
apache2: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
Aborted (core dumped)
Action 'configtest' failed.
The Apache error log may have more information.
Apache 错误日志为空。
我还在 ports.conf 中设置了 Listen 0.0.0.0:8080 和 Listen 0.0.0.0:8443 并更改了虚拟主机的端口以匹配监听端口。
系统版本:
➜ ~ uname -a
Linux yce-mac 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
➜ ~ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
Windows 操作系统版本:10.0.15063(创作者更新)
【问题讨论】:
标签: windows apache apache2 windows-subsystem-for-linux getaddrinfo