当我尝试从 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(创作者更新)
好的,看起来(至少对我而言)问题是由名为 Pulse Secure 的 VPN 解决方案引起的。
在我卸载它之后,apache 又开始工作了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句