Xampp - localhost无法正常工作

时间:2015-07-14 20:52:38

标签: apache xampp localhost

虽然apache似乎正在工作"在xampp控制面板上,我无法访问localhost或127.0.0.1。我将80端口更改为81但未解决。

httpd.cong - >听取0.0.0.0:80

我在system32 / drivers / etc目录中的主机文件就像

127.0.0.1       localhost

apache错误日志中的最后一次登录是

[Tue Jul 14 22:54:33.141632 2015] [mpm_winnt:notice] [pid 2620:tid 392]     AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Jul 14 22:54:35.145746 2015] [mpm_winnt:notice] [pid 4708:tid 288]     AH00364: Child: All worker threads have exited.
[Tue Jul 14 22:54:35.188749 2015] [mpm_winnt:notice] [pid 2620:tid 392] AH00430: Parent: Child process 4708 exited successfully.
[Tue Jul 14 22:54:36.218808 2015] [mpm_winnt:notice] [pid 1376:tid 392] AH00455: Apache/2.4.7 (Win32) PHP/5.5.9 configured -- resuming normal operations
[Tue Jul 14 22:54:36.218808 2015] [mpm_winnt:notice] [pid 1376:tid 392] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Tue Jul 14 22:54:36.218808 2015] [core:notice] [pid 1376:tid 392] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Jul 14 22:54:36.470822 2015] [mpm_winnt:notice] [pid 1376:tid 392] AH00418: Parent: Created child process 1296
[Tue Jul 14 22:54:36.984851 2015] [mpm_winnt:notice] [pid 1296:tid 288] AH00354: Child: Starting 150 worker threads.

1 个答案:

答案 0 :(得分:0)

有时端口80被Windows上的其他应用程序使用,例如skype。 尝试在apache> config> httpd.conf中将端口更改为8080 和apache中的4433> config> httpd-ssl.conf

有时您的网络可能会产生问题。尝试断开网络连接并重新加载localhost。如果它有效,那么它就是你的网络限制。