我刚刚重新安装XAMPP,当我试图在XAMPP控制面板中启动我的Apache服务器时,我现在得到以下错误:
16:50:25 [Apache] Status change detected: running
16:50:26 [Apache] Status change detected: stopped
16:50:26 [Apache] Error: Apache shutdown unexpectedly.
16:50:26 [Apache] This may be due to a blocked port, missing dependencies,
16:50:26 [Apache] improper privileges, a crash, or a shutdown by another method.
16:50:26 [Apache] Press the Logs button to view error logs and check
16:50:26 [Apache] the Windows Event Viewer for more clues
16:50:26 [Apache] If you need more help, copy and post this
16:50:26 [Apache] entire log window on the forums
我怎么解决这个问题?
我刚刚在我的xampp v3.2.2 [win 10 pro x64]上遇到了这个错误,
我首先尝试在管理cmd中运行“net stop http”命令,但它没有解决问题,所以我继续尝试“netstat -abno”命令,我发现ssl端口(443)正在被vmware使用。
因此,我的建议是,不要只寻找阻塞端口80的原因,还要寻找使用端口443的潜在程序。因为我真的不喜欢把我的默认端口号改为8081和4433。
这就是你解决这个问题的方法…
首先输入以下命令
停止HTTP
然后尝试启动apache,如果它仍然不工作。输入以下命令
Netstat -ABNO
你肯定会遇到麻烦的应用,它会占用你宝贵的移植端口。
复制pid,然后使用以下命令
taskkill /f /pid pid
这里的PID是你复制的PID。
希望这能帮助到一些人。
您可以做的简单的事情是检查Skype或VMware是否安装在您的机器上。
Skype使用端口80和443作为传入连接的附加端口。如果需要在Skype中修改端口号,请转
工具>连接选项>连接
在Skype窗口。现在将默认的80端口号更改为其他端口号。
VMware Workstation使用443端口进行共享。要改变这一点,打开VMware工作站,然后转到
编辑>首选项>共享虚拟机
点击“更改设置”按钮
然后点击“禁用共享”
然后更改正在使用的https端口号(443)
然后点击“启用共享”按钮
这就是你要做的。重新启动XAMPP并运行Apache服务器。
步骤1:在Apache进入Config,然后选择Apache(httpd.conf)
在记事本中,找到Listen 80并添加另一个80以将端口更改为Listen 8080
请确保在关闭记事本之前保存。
步骤2:在Apache中选择Apache(httpd-ssl.conf)
在记事本中,找到Listen 443,并在443之后再添加3,将端口更改为Listen 4433
然后搜索“VirtualHost default:443”,再添加3,将端口修改为“VirtualHost default:4433”
请确保在关闭记事本之前保存。
(注:这里有一个类似的答案,但它并不适用于我,直到我喜欢YT的视频)