很久没用XAMPP了,刚才在开启Apache服务时遇到了问题。 apache
Error: Apache shutdown unexpectedly. spa
This may be due to a blocked port, missing dependencies, 进程
improper privileges, a crash, or a shutdown by another method ci
Check the "/xampp/apache/logs/error.log" file 虚拟机
and the Windows Event Viewer for more clues file
This may be due to a blocked port 一种可能的缘由就是端口被占用了。 im
之前在XAMPP里开启Apache时通常都占据了80和443端口。 error
去检查下这两个端口是否被占用。 xampp
能够在CMD里输入netstat -ano来查看,也能够直接按XAMPP的控制面板上的Netstat按来查看当前占用的端口。 端口
我这边很快发现443端口被虚拟机占用了,关掉这个进程。再次开启Apache就能够。
通常遇到问题就先检查下80和443端口吧。