多语言展示
当前在线:1030今日阅读:126今日分享:42

XAMPP:Apache shutdown unexpectedly解决办法

我们使用XAMPP时遇到14:42:24  [Apache]  Error: Apache shutdown unexpectedly.14:42:24  [Apache]  This may be due to a blocked port, missing dependencies, 14:42:24  [Apache]  improper privileges, a crash, or a shutdown by another method.14:42:24  [Apache]  Press the Logs button to view error logs and check14:42:24  [Apache]  the Windows Event Viewer for more clues14:42:24  [Apache]  If you need more help, copy and post this14:42:24  [Apache]  entire log window on the forums这样的问题的解决办法
工具/原料
1

XAMPP Control Panel

2

电脑

方法/步骤
1

首先,我们需要明白这个问题是由于Apache的80端口和443端口被占用引起的,我们只需要在相应的文件中改写这两个端口即可。

2

打开XAMPP Control Panel,单击Apache的Config按钮选择httpd.conf文件,并用记事本打开

4

其次,再单击Config按钮选择Apache(httpd-ssl.conf)文件,并用记事本打开

5

将httpd-ssl.conf文件中的Listen 443 和还有ServerName www.example.com:443  中的数字“443”该为“4433”

6

最后,记得把两个改动了的文件保存一下,再重新打开Apache即可↖(^ω^)↗

注意事项
1

修改文件后一定要保存⊙0⊙

2

修改后在浏览器中打开要将“localhost”改成“localhost:8080“才能正常使用哦

推荐信息