简体   繁体   English

Windows 2018年4月10日更新导致Apache24关闭

[英]Windows 10 April 2018 update cause Apache24 to shut down

I am using Windows 10 Pro which runs WAMP. 我正在使用运行WAMP的Windows 10 Pro。 A Windows 10 April 2018 update was done last night and now my Apache24 server stopped working. 昨晚完成了Windows 10 April 2018更新,现在我的Apache24服务器停止工作了。

I did some checking by trying to start Apache httpd.exe from the command line and it returns this message: "AH00072: make_sock: could not bind to address 0.0.0.0:80 AH00451: no listening sockets available, shutting down" 我通过尝试从命令行启动Apache httpd.exe进行了一些检查,并返回以下消息:“ AH00072:make_sock:无法绑定到地址0.0.0.0:80 AH00451:没有可用的侦听套接字,正在关闭”

In the Apache httpd.conf file I changed the Listen from Listen 80 to Listen 127.0.0.1:80 to match what's in the hosts file. 在Apache httpd.conf文件中,我将侦听从侦听80更改为侦听127.0.0.1:80,以匹配主机文件中的内容。 After saving the files; 保存文件后; did a restart and ran httpd.exe again, I still got this message: 重新启动并再次运行httpd.exe,我仍然收到此消息:

"AH00072: make_sock: could not bind to address 127.0.0.1:80 AH00451: no listening sockets available, shutting down". “ AH00072:make_sock:无法绑定到地址127.0.0.1:80 AH00451:没有可用的侦听套接字,正在关闭”。

My Apache24 server works perfect before this windows 10 update. 在此Windows 10更新之前,我的Apache24服务器可以完美运行。 Does anyone know what could have caused this problem? 有谁知道是什么引起了这个问题?

I was able to figure out the issue by doing the following: I took another Windows 10 pro workstation which also has the WAMP installation on it. 通过执行以下操作,我可以找出问题所在:我使用了另一个Windows 10 pro工作站,该工作站上还装有WAMP。 This box did not get the April 2018 update. 此框未获得2018年4月的更新。 I then compared the Services running on both boxes and found that the box with the windows update had “World Wide Web Publishing Service” running while the other box did not have such a service. 然后,我比较了两个盒子上运行的服务,发现带有Windows更新的盒子运行了“ World Wide Web Publishing服务”,而另一个盒子没有此类服务。 This tells me that the windows update turns on the service and set it to autostart. 这告诉我Windows更新会打开服务并将其设置为自动启动。 I turned off the service by stopping the “World Wide Web Publishing Service” from running, and then start Apache from the Apache HTTP server monitor which was successful. 我通过停止运行“万维网发布服务”来关闭该服务,然后从成功的Apache HTTP服务器监视器启动Apache。 I then went back and set the “World Wide Web Publishing Service” to manual start before restarting it. 然后,我返回并将“万维网发布服务”设置为手动启动,然后重新启动它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM