今天试了下XAMMP,居然一下就有错误
18:20:35 [Apache]Error: Apache shutdown unexpectedly.
18:20:35 [Apache] This may be due to a blocked port, missing dependencies,18:20:35 [Apache] improper privileges, a crash, or a shutdown by another method.
18:20:35 [Apache] Check the "/xampp/apache/logs/error.log" file
18:20:35 [Apache] and the Windows Event Viewer for more clues
点击Apache里的 Config 点击httpd-ssl.conf
用ctrl+f 定位Listen 80
将其改为Listen 81或其他没有占用的端口
这实际上是修改下面目录的文件,就是你安装xampp的目录,以我为例,我直接装在c盘
C:\xampp-portable\apache\conf\extra\httpd-ssl.conf
修改后就可以正常运行,如下