很久沒用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端口吧。