当我使用XAMPP v3.2.2启动apache服务器时,它会出现一个错误:
18:30:18 [Apache] Error: Apache shutdown unexpectedly.
18:30:18 [Apache] This may be due to a blocked port, missing dependencies,
18:30:18 [Apache] improper privileges, a crash, or a shutdown by another method.
18:30:18 [Apache] Press the Logs button to view error logs and check
18:30:18 [Apache] the Windows Event Viewer for more clues
18:30:18 [Apache] If you need more help, copy and post this
18:30:18 [Apache] entire log window on the forums
然后我进入错误文件,它说:
[Wed Dec 30 18:12:12.892830 2015] [ssl:warn] [pid 11372:tid 512] AH01909: www.example.com:443:0 server certificate does NOT include anID which matches the server name
[Wed Dec 30 18:12:13.066839 2015] [ssl:warn] [pid 11372:tid 512] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 30 18:12:13.134845 2015] [mpm_winnt:notice] [pid 11372:tid 512] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.0 configured -- resuming normal operations
[Wed Dec 30 18:12:13.134845 2015] [mpm_winnt:notice] [pid 11372:tid 512] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 10:17:39
[Wed Dec 30 18:12:13.134845 2015] [core:notice] [pid 11372:tid 512] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Dec 30 18:12:13.142847 2015] [mpm_winnt:notice] [pid 11372:tid 512] AH00418: Parent: Created child process 4144
[Wed Dec 30 18:12:13.900887 2015] [ssl:warn] [pid 4144:tid 564] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 30 18:12:14.074292 2015] [ssl:warn] [pid 4144:tid 564] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Dec 30 18:12:14.134295 2015] [mpm_winnt:notice] [pid 4144:tid 564] AH00354: Child: Starting 150 worker threads.
我很困惑,不知道如何解决它。
2条答案
按热度按时间yi0zb3m41#
如果你的skype是打开的-你可能会退出程序,因为skype正在使用端口80
qlckcl4x2#
经过一点研究,我发现Win 10可能有一个服务运行在端口80,名为“万维网发布服务”。你需要做的是停止这个服务或更改Apache端口,如下所示:
试试看:
C:\xampp\apache\conf\httpd.conf
。要访问本地主机,请打开浏览器并键入:
localhost:9080/sitefolder/
,而不仅仅是localhost/sitefolder/
你应该没事了。
如果不起作用,请重复相同的过程,再次将端口更改为80,然后继续方法2。
注意:除非您正在运行某些依赖于Microsoft IIS Web Server的软件,否则停止它应该没有问题。
若要停止此服务,您可以遵循此video tutorial。