Rumah >pembangunan bahagian belakang >tutorial php >XAMPP端口占用问题的解决
前几天用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.到这个目录下\ xampp\apache\conf ,打开httpd.conf,将里边的80端口全部改成一个未被占用的端口,比如8001
2.到这个目录 \ xampp\apache\conf\extra ,打开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教程有兴趣的朋友有所帮助。