前幾天用XAMPP的時候突然報了下面的錯誤,沒辦法啟動。
錯誤:
<code><span>17</span>:<span>05</span>:<span>33</span> [Apache] Error: Apache shutdown unexpectedly. <span>17</span>:<span>05</span>:<span>33</span> [Apache] This may be due <span>to</span><span>a</span> blocked port, missing dependencies, <span>17</span>:<span>05</span>:<span>33</span> [Apache] improper privileges, <span>a</span> crash, <span>or</span><span>a</span> shutdown <span>by</span> another method. <span>17</span>:<span>05</span>:<span>33</span> [Apache] Check <span>the</span><span>"/xampp/apache/logs/error.log"</span><span>file</span><span>17</span>:<span>05</span>:<span>33</span> [Apache] <span>and</span><span>the</span> Windows Event Viewer <span>for</span> more clues</code>
其實這個問題就是連接埠被佔用了,以下是修改方法
自己修改兩個連接埠:
1.到這個目錄下xamppapacheconf ,打開httpd.conf,將裡邊的80端口全部改成一個未被佔用的端口,比如8001
2.到這個目錄xamppapacheconfextra ,打開httpd-ssl.conf ,將文件裡的443端口全部換成一個未被佔用的端口,比如4431
我將端口修改之後,端口衝突的問題就解決了,希望對大家有所幫助~
').addClass('pre-numbering') .hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });以上就介紹了XAMPP埠佔用問題的解決,包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。