Apache shutdown unexpectedly启动错误解决方法
2015-11-04 11:07
447 查看
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即可。
综上所述第一种方法推荐使用,第二种每次启动都或多或少的再次遇到。
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即可。
综上所述第一种方法推荐使用,第二种每次启动都或多或少的再次遇到。
相关文章推荐
- linux下安装php+apache+mysql集成环境
- 《Maven: The Complete Reference》Chapter 1 Introducing Apache Maven
- 错误现象:Provider org.apache.xalan.processor.TransformerFactoryImpl not found解决方案包
- Apache Kafka 分布式消息队列中间件安装与配置
- 把Apache和MySQL配置为开启启动
- Apache建立虚拟主机
- 安装Lamp环境(Apache)
- 安装apache+php+mysql
- [亲测]Apache配置虚拟域名
- Mac下配置Apache + Php + Mysql环境
- 开源性能测试工具 - Apache ab 介绍
- win7+bugzilla+apache+mysql+activePerl
- lucene4.2 java.lang.NullPointerException at org.apache.lucene.analysis.standard.StandardTokenizerIm
- 针对Apache2handler的几个问题
- Apache Client使用说明第一章(第一部分)
- 用apache-cxf生成webservice客户端的时候报错Parameter: shead already exists for method
- Apache安装问题:configure: error: APR not found . Please read the documentation
- Apache+Mysql+PHP环境配置(WINDOWS)
- Apache-Tika解析PDF文档
- JDBC:Apache DBUtils的使用