通过XAMPP自带的netstat可以看到,443端口被占用了。

所以我们修改ssl的默认端口

同时修改XAMPP软件内的端口

 

附上我的报错信息

17:38:16 [Apache] Attempting to start Apache app...
17:38:16 [Apache] Status change detected: running
17:38:17 [Apache] Status change detected: stopped
17:38:17 [Apache] Error: Apache shutdown unexpectedly.
17:38:17 [Apache] This may be due to a blocked port, missing dependencies,
17:38:17 [Apache] improper privileges, a crash, or a shutdown by another method.
17:38:17 [Apache] Press the Logs button to view error logs and check
17:38:17 [Apache] the Windows Event Viewer for more clues
17:38:17 [Apache] If you need more help, copy and post this
17:38:17 [Apache] entire log window on the forums
17:38:20 [Apache] Status change detected: running
17:38:21 [Apache] Status change detected: stopped
17:38:21 [Apache] Error: Apache shutdown unexpectedly.
17:38:21 [Apache] This may be due to a blocked port, missing dependencies,
17:38:21 [Apache] improper privileges, a crash, or a shutdown by another method.
17:38:21 [Apache] Press the Logs button to view error logs and check
17:38:21 [Apache] the Windows Event Viewer for more clues
17:38:21 [Apache] If you need more help, copy and post this
17:38:21 [Apache] entire log window on the forums

同理,如果您的80端口被占用,也需要修改

正常启动后访问127.0.0.1:81#这里替换为您修改的httpd的端口,不是ssl的端口

 

posted on 2018-07-21 17:54  ccadmin  阅读(297)  评论(0编辑  收藏  举报