成功安装,但无法在Windows 7系统上启动apache 2.4 [英] Succeeded installing but could not start apache 2.4 on my windows 7 system

查看:193
本文介绍了成功安装,但无法在Windows 7系统上启动apache 2.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7系统上安装并运行apache 2.4 我转到apache 2.4 bin目录并运行以下命令: 注意:我以管理员身份打开了cmd窗口. C:\ Apache24 \ bin> httpd.exe -k安装

I am attempting to install and run apache 2.4 on my windows 7 system I went to the apache 2.4 bin directory and ran the following: Note: I opened the cmd window as administrator. C:\Apache24\bin>httpd.exe -k install

其输出如下:

Installing the Apache2.4 service
The Apache2.4 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
(OS 10013)An attempt was made to access a socket in a way forbidden by its acces
s permissions.  : AH00072: make_sock: could not bind to address [::]:80
(OS 10013)An attempt was made to access a socket in a way forbidden by its acces
s permissions.  : AH00072: make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open log

因此它安装了Apache 2.4作为服务,但无法启动.似乎正在使用localhost端口80. "[::]:80" 是什么意思?

So it installed apache 2.4 as a service but it could not be started. It seems like the localhost port 80 is being used. Is this what "[::]:80" means?

然后我停止了我仍在运行的apache 2.0服务和mysql服务,希望停止其中之一可能会释放localhost端口80.

I then stopped both the the apache 2.0 service which I had left running and the mysql service, hoping stopping one of them might free up localhost port 80.

我还运行netstat -o以查看是否正在使用端口80.不是.

I also run netstat -o to see if port 80 is being used. It was not.

但是,然后我发现一个进程正在使用上面的套接字,这是一个正在上面的套接字上监听的进程

But, I then found that a process was using the above socket it is a process that is listening on the above socket

 TCP    [::]:80                User-PC:0              LISTENING       4

然后我运行任务列表,发现系统正在使用pid4.4在pid列下

I then ran tasklist and found out that System is using pid 4. 4 is under the pid column

System                           4 Services                   0        544 K

最后,从失败的尝试启动服务 Windows系统事件中记录了一个错误.

Finally, from the failed attempt to start the service I got an error which was recorded in windows systems events.

Log Name:      System
Source:        Service Control Manager
Date:          2/21/2013 1:58:03 PM
Event ID:      7024
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      User-PC
Description:
The Apache2.4 service terminated with service-specific error Incorrect function.

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="49152">7024</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2013-02-21T18:58:03.723988900Z" />
    <EventRecordID>87756</EventRecordID>
    <Correlation />
    <Execution ProcessID="560" ThreadID="7596" />
    <Channel>System</Channel>
    <Computer>User-PC</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="param1">Apache2.4</Data>
    <Data Name="param2">%%1</Data>
  </EventData>
</Event>

尝试启动时出现错误,原因是由于缺少访问权限,make-sock无法绑定到对我来说像本地主机端口80的套接字.例如,

The error from the attempt to start says that beacause of lack of access, make-sock could not bind to sockets which to me looked like localhost port 80. For example,

  (OS 10013)An attempt was made to access a socket in a way forbidden by its acces
    s permissions.  : AH00072: make_sock: could not bind to address [::]:80

谁能告诉我我在做什么错?

Can anyone tell what I am doing wrong?

推荐答案

抱歉,这个令人困惑的问题.为了解决我的问题,我只是告诉apache 2.4监听httpd.conf中的另一个端口.由于System使用的pid 4正在侦听80端口,因此我不想再对此进行探讨.

Sorry for the belabored question. To solve my problem I just told apache 2.4 to listen to a different port in httpd.conf. Since System was using pid 4 which was listening on port 80, I did not want to explore this any further.

我将以下内容放入httpd.conf中. 听127.0.0.1:122

I put the following into httpd.conf. Listen 127.0.0.1:122

这篇关于成功安装,但无法在Windows 7系统上启动apache 2.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆