zoukankan      html  css  js  c++  java
  • xampp/apache启动失败解决方法

    我的问题是:

    9:15:53 AM  [Apache] Error: Apache shutdown unexpectedly.
    9:15:53 AM  [Apache] This may be due to a blocked port, missing dependencies, 
    9:15:53 AM  [Apache] improper privileges, a crash, or a shutdown by another method.
    9:15:53 AM  [Apache] Press the Logs button to view error logs and check
    9:15:53 AM  [Apache] the Windows Event Viewer for more clues
    9:15:53 AM  [Apache] If you need more help, copy and post this
    9:15:53 AM  [Apache] entire log window on the forums

    根据log查找解决方案,

    1.80端口冲突,解决方法:

    打开目录C:xamppapacheconf(我的安装目录为C:xampp)下的httpd.conf文件,将Listen 80和 ServerName localhost:80中的80改为8081或其它值(尽量不要使用0-1023端口,这个是系统保留端口),要保持一致。
    2.监听端口443冲突,解决方法:
    打开目录C:xamppapacheconfextra (我的安装目录为C:xampp)下的httpd-ssl.conf文件,将Listen 443这句注释掉:# Listen 443或将443改为4433或其它值(尽量不要使用0-1023)。

    再修改了以上两个端口后,再次启动apache,it works!

    9:18:03 AM  [Apache] Problem detected!
    9:18:03 AM  [Apache] Port 80 in use by "D:Program FilesSkypePhoneSkype.exe" with PID 4808!
    9:18:03 AM  [Apache] Apache WILL NOT start without the configured ports free!
    9:18:03 AM  [Apache] You need to uninstall/disable/reconfigure the blocking application
    9:18:03 AM  [Apache] or reconfigure Apache and the Control Panel to listen on a different port
    9:18:03 AM  [Apache] Problem detected!
    9:18:03 AM  [Apache] Port 443 in use by "D:Program FilesSkypePhoneSkype.exe" with PID 4808!
    9:18:03 AM  [Apache] Apache WILL NOT start without the configured ports free!
    9:18:03 AM  [Apache] You need to uninstall/disable/reconfigure the blocking application
    9:18:03 AM  [Apache] or reconfigure Apache and the Control Panel to listen on a different port
    9:18:03 AM  [Apache] Attempting to start Apache app...
    9:18:03 AM  [Apache] Status change detected: running
     

  • 相关阅读:
    主流浏览器的内核私有属性css前缀
    判断一个js对象是否是Array,最准确的方法
    JavaScript的void运算符
    js闭包面试题
    请问何为混合应用 (Hybrid APP) ,与原生 Native 应用相比它的优劣势
    将闭包返回赋值给两个变量,执行这两个闭包变量
    js操作符“+”前后的类型转换
    js基本类型和基本包装类型的区别
    只能输入零和非零开头的数字的正则表达式
    将一个非匿名函数赋值给变量再执行这个非匿名函数会如何
  • 原文地址:https://www.cnblogs.com/flzs/p/10591895.html
Copyright © 2011-2022 走看看