首页 > 代码库 > XAMPP解决端口占用问题

XAMPP解决端口占用问题

19:36:17  [Apache]     Error: Apache shutdown unexpectedly.
19:36:17  [Apache]     This may be due to a blocked port, missing dependencies, 
19:36:17  [Apache]     improper privileges, a crash, or a shutdown by another method.
19:36:17  [Apache]     Press the Logs button to view error logs and check
19:36:17  [Apache]     the Windows Event Viewer for more clues
19:36:17  [Apache]     If you need more help, copy and post this
19:36:17  [Apache]     entire log window on the forums
点击右侧的Netstat查看下80和443是不是被占用了

1、80Port被占用的情况(这是最常见的)两步解决
1)\XAMPP\apache\conf\ 这个目录下的httpd.conf 文件中 所有80换成82(或88等随意)
2)\XAMPP\apache\conf\extra\ 这个目录下的 httpd-vhosts.conf 所有80换成82(或88等随意)
如此这般80被占就解决了

2、443被占情况
\XAMPP\apache\conf\extra\ 这个目录下的 httpd-ssl.conf 所有443换成445(或其他等随意)

XAMPP解决端口占用问题