Apache shutdown unexpectedly启动错误解决方法
转载地址:http://blog.csdn.net/dong123dddd/article/details/21372179
xampp启动时显示的错误为:
9:52:41 [Apache] Attempting to start Apache app...
9:52:41 [Apache] Status change detected: running
9:52:42 [Apache] Status change detected: stopped
9:52:42 [Apache] Error: Apache shutdown unexpectedly.
9:52:42 [Apache] This may be due to a blocked port, missing dependencies,
9:52:42 [Apache] improper privileges, a crash, or a shutdown by another method.
9:52:42 [Apache] Check the "/xampp/apache/logs/error.log" file
9:52:42 [Apache] and the Windows Event Viewer for more clues
这个问题比较常见, 通常是80、443端口被占用
cmd 通过运行apache/bin/httpd.exe 打印如下log:
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: could not bind to address 0.0.0.0:443
或者后面是80端口被占用
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: could not bind to address 0.0.0.0:80 或[ : : ]:80
一、最快的处理方法就是修改端口号:
1、443端口被占用,apache无法监听443端口,该如何解决呢?
在/xampp/apache/conf/extra/httpd-ssl.conf
把Listen 443 修改为 444(可自定义)
2、80端口被占用,apache无法监听80端口,该如何解决呢?
在/xampp/apache/conf/extra/httpd.conf
把Listen 80 修改为 88 (可自定义)
如果配置了vhosts的话请把httpd-vhosts.conf 中端口改为88(同上端口号)
二、最直接的方法是关闭占用80、443端口的进程:
1.通过cmd中netstat -ano 看看本机80、 443端口被占用没 ----- --这里 可能会被其他程序占用如iis、虚拟机等
2.通过cmd中打印tasklist,查找占用80、443端口的进程名称。
3.taskkill /pid 端口号 杀掉此进程名称,XAMPP重启apache即可。
综上所述第一种方法推荐使用,第二种每次启动都或多或少的再次遇到。
Apache shutdown unexpectedly启动错误解决方法相关推荐
- PHP Apache shutdown unexpectedly启动错误解释及解决的方法
在学PHP的时候,偶然发现XAMPP窗体Apache的启动出现错误,出现下面的错误提示: 9:52:41 [Apache] Attempting to start Apache app... 9:5 ...
- xampp中apache点击启动失败解决方法
xampp中apache点击启动失败解决方法 参考文章: (1)xampp中apache点击启动失败解决方法 (2)https://www.cnblogs.com/cuisaihang/p/70088 ...
- Delta Force Xtreme、战地风云2 重装系统游戏启动错误解决方法
重装系统游戏启动错误解决方法,我知道重装游戏可以,但是这个方法不是我们懒人干的 Delta Force Xtreme 重装系统以后 启动会提示出错,就是常见的非法操作内存错误 用记事本写入以下内容,以 ...
- AMEsim 几个启动错误解决方法
1. warning:Invalid icon category:category file'c:\amesim/icons/lines.xbm'does not exist. 解决方法: 添加环境 ...
- 使用XAMPP和Hbuilder搭建PHP环境(XAMPP中Apache启动失败解决方法)
首先安装XAMPP,安装网址:https://www.apachefriends.org/index.html# 安装Hbuilder :http://www.dcloud.io/ 根据自己的系统选 ...
- xampp启动Apache报错 1、Error: Apache shutdown unexpectedly. 2、Unclean shutdown of previous Apache run?
报错信息 Error: Apache shutdown unexpectedly. Unclean shutdown of previous Apache run? PHP Warning: 'vc ...
- Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
Target runtime Apache Tomcat v6.0 is not defined.错误解决方法 Eclipse导入工程后工程上显示一个小红叉,但工程里没有文件错误,也没有语法错误,百思 ...
- apache AH01630: client denied by server configuration错误解决方法
apache AH01630: client denied by server configuration错误解决方法 出现这个错误的原因是,apache2.4 与 apache2.2 的虚拟主机配置 ...
- 安装Wamp后 Apache无法启动的解决方法
安装Wamp后 Apache无法启动的解决方法,网上的解决方案可以说是五花八门,有些说了一大推,一点作用都起不到. 其实解决方法只需两步: 1.安装路径不能包含有中文,这个我不知道为什么,总之如果安装 ...
最新文章
- Python 机器学习之项目实践
- 统计操作系统的整个系统负载占用CPU的情况
- Hadoop集群扩容和缩容:添加白名单和黑名单
- 容器源码解析之容器全貌(一)
- linux常用命令之权限
- maven 按业务拆分模块_Maven模块拆分方法
- linux——线程(2)
- AndroidStudio_安卓原生开发_自定义ToastUtils---Android原生开发工作笔记135
- Jeecg-Boot前后端分离版
- 重建大师5.0成为首款支持国产麒麟操作系统的自动实景三维建模软件
- linux shell 数字雨,cmd命令如何实现数字雨
- id导出pdf失败_InDesign 导出印刷用PDF时如何设置?
- EXCEL等额本息还款计算器
- 只使用一个块级元素绘制各种图形
- 全国软件2. 三人年龄
- 《AngularJS深度剖析与最佳实践》简介
- SYBASE 12.5 维护手册 3. 技术专刊
- 内存自动清理.sql
- Altium Designer差分线设置与蛇形走线详解
- 二进制、八进制、十进制和十六进制的转换
热门文章
- python numpy.arange() 函数的使用方法 (在给定间隔内返回均匀间隔的值)
- Python类的多态
- WINCE的FFMPEG交叉编译环境搭建
- JVM中垃圾回收相关算法 - 值得了解一下的,因为早晚得了解
- mysql导出数据表 .xls_mysql数据库导出xls-自定义
- wpf 如何设置弹出窗口必须关闭才能打开其他软件_CAD如何打印才能不留白?原来打印图纸还有这么多技巧?...
- 华为商店的软件可以鸿蒙,部分鸿蒙原生应用上架华为应用市场:体积小功能有待完善...
- go mysql教学_Go语言之对Mysql简单操作
- java点击表头可进行排序_table中点击表头实现排序的功能示例介绍
- Java输入光标在printf前面_C++ 设置控制台(命令行)窗口 光标位置,及前背景颜色