无法在 WSL 中启动 apache2
Cannot start apache2 in WSL
当我尝试从 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 OS 版本:10.0.15063(创意者更新)
您是否更新了 Windows10 的旧版本?还是全新安装?
尝试使用
删除并重新安装 WSL
- lxrun /uninstall /full /y
- lxrun /install
好的,看起来(至少对我而言)问题是由名为 Pulse Secure 的 VPN 解决方案引起的。
我卸载后,apache 又开始工作了。
当我尝试从 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 OS 版本:10.0.15063(创意者更新)
您是否更新了 Windows10 的旧版本?还是全新安装? 尝试使用
删除并重新安装 WSL- lxrun /uninstall /full /y
- lxrun /install
好的,看起来(至少对我而言)问题是由名为 Pulse Secure 的 VPN 解决方案引起的。
我卸载后,apache 又开始工作了。