Apache 不会绑定到任何端口 (OS 10048)
Apache won't bind to ANY port (OS 10048)
我无法启动 Apache 服务。
当我尝试从服务启动它时,我在事件查看器中收到以下事件。
The Apache service named reported the following error: (OS
10048)Only one usage of each socket address (protocol/network
address/port) is normally permitted. : AH00072: make_sock: could not
bind to address 0.0.0.0:8090
AH00451: no listening sockets available, shutting down .
AH00015: Unable to open logs
.
我已经尝试了端口 80、端口 8080 和 8090,但我遇到了同样的错误。
我检查了这些端口是否在使用中,它们没有通过 netstat 或通过我使用过的 currports.exe 列出。
我拥有一切 运行 但我在 apache 上重建了 SYMLINKS 和 mysql 我想我可能做得太快了,因为当时我收到一条错误消息 mysql 并且 apache 保持关闭状态。
我不得不重新安装 mysql 服务,但 Apache 服务无法运行!!
我在 windows 2008 R2 Enterprise 上安装了带有 apache 2.4.9 运行 的 wamp 2.5,用于使用 wordpress 的办公室内部网。
非常感谢帮助
干杯
JCro
EDIT Code from Httd.conf. I have just added the lines I've amended #
#
Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen 80
#
# Dynamic Shared Object (DSO) Support
#
#
ServerName localhost:80
HostnameLookups Off
#
目前还不清楚是什么导致了这种情况,但这可能会让你重新振作起来 运行。
启动 WAMPServer
卸载 Apache 服务
wampmanager -> Apache -> Service -> Remove Service
重新安装 Apache 服务
wampmanager -> Apache -> Service -> Install Service
启动 Apache
wampmanager -> Apache -> Service -> Start/Resume Service
现在,如果您想重建 Apache SYMLINKS(mysql 默认情况下没有),您可以这样做 :-
wampmanager -> Apache -> Version -> (click on the current version number)
然后等待几秒钟,WAMPServer 会重建 SYMLINKS 并为您重新启动 Apache。
哦,那我会把 Apache 放回监听端口 80。
回复:您的 httpd.conf
修正案
这一行应该是注释,它是一个示例,但不打算成为此文件中使用的参数的一部分
#Listen 12.34.56.78:80
这两行应该是
# this is for IPV4
Listen 0.0.0.0:80
# This is for IPV6
Listen [::0]:80
这两行看起来不错
ServerName localhost:80
HostnameLookups Off
如何在Windows10中查看端口号?
Open a command prompt window (as Administrator) From "Start\Search box" Enter "cmd" then right-click on "cmd.exe" and select "Run as Administrator"
Enter the following text then hit Enter. netstat -abno. ...
Find the Port that you are listening on under "Local Address"
Look at the process name directly under that.
在给定计算机上找到服务 运行 的 PID 后,打开任务管理器并按 PID 对 运行 进程进行排序。找到您的目标 PID 右键单击并转到服务,右键单击该服务并停止该服务。在不启动 apache 2.4 服务的情况下,只需获取此路径 "C:\Apache24\bin>httpd -k start" 然后输入即可。这就是我在经历许多起起伏伏后获得成功的方式。
OS 10048) 通常只允许每个套接字地址 (protocol/network address/port) 使用一次。 : AH00072: make_sock: 无法绑定到地址 [::]:80 (OS 10048) 通常只允许使用每个套接字地址 (protocol/network address/port) . :AH00072:make_sock:无法绑定到地址 0.0.0.0:80 AH00451:没有可用的侦听套接字,正在关闭 AH00015:无法打开日志
我在尝试启动 Apache2.4 时遇到了同样的错误。但是当我用 Listen 8080 替换 Listen 80 时(通过转到 httpd.conf 文件放置在 Apache24 文件夹内的 conf 文件夹中),我的问题解决了。
你可能仍然会收到关于端口 443 的投诉。如果你查看 httpd.conf,你将无法找到 443。但是,你会发现以下内容:
安全(SSL/TLS)个连接
包括“conf/extra/httpd-ssl.conf”
查看 httpd-ssl.conf 文件,将 443 替换为其他端口。
尽情享受吧!
我无法启动 Apache 服务。
当我尝试从服务启动它时,我在事件查看器中收到以下事件。
The Apache service named reported the following error: (OS
10048)Only one usage of each socket address (protocol/network
address/port) is normally permitted. : AH00072: make_sock: could not bind to address 0.0.0.0:8090AH00451: no listening sockets available, shutting down .
AH00015: Unable to open logs
.
我已经尝试了端口 80、端口 8080 和 8090,但我遇到了同样的错误。 我检查了这些端口是否在使用中,它们没有通过 netstat 或通过我使用过的 currports.exe 列出。
我拥有一切 运行 但我在 apache 上重建了 SYMLINKS 和 mysql 我想我可能做得太快了,因为当时我收到一条错误消息 mysql 并且 apache 保持关闭状态。 我不得不重新安装 mysql 服务,但 Apache 服务无法运行!!
我在 windows 2008 R2 Enterprise 上安装了带有 apache 2.4.9 运行 的 wamp 2.5,用于使用 wordpress 的办公室内部网。
非常感谢帮助
干杯
JCro
EDIT Code from Httd.conf. I have just added the lines I've amended #
#
Listen 12.34.56.78:80
Listen 0.0.0.0:80
Listen 80
#
# Dynamic Shared Object (DSO) Support
#
#
ServerName localhost:80
HostnameLookups Off
#
目前还不清楚是什么导致了这种情况,但这可能会让你重新振作起来 运行。
启动 WAMPServer
卸载 Apache 服务
wampmanager -> Apache -> Service -> Remove Service
重新安装 Apache 服务
wampmanager -> Apache -> Service -> Install Service
启动 Apache
wampmanager -> Apache -> Service -> Start/Resume Service
现在,如果您想重建 Apache SYMLINKS(mysql 默认情况下没有),您可以这样做 :-
wampmanager -> Apache -> Version -> (click on the current version number)
然后等待几秒钟,WAMPServer 会重建 SYMLINKS 并为您重新启动 Apache。
哦,那我会把 Apache 放回监听端口 80。
回复:您的 httpd.conf
修正案
这一行应该是注释,它是一个示例,但不打算成为此文件中使用的参数的一部分
#Listen 12.34.56.78:80
这两行应该是
# this is for IPV4
Listen 0.0.0.0:80
# This is for IPV6
Listen [::0]:80
这两行看起来不错
ServerName localhost:80
HostnameLookups Off
如何在Windows10中查看端口号?
Open a command prompt window (as Administrator) From "Start\Search box" Enter "cmd" then right-click on "cmd.exe" and select "Run as Administrator"
Enter the following text then hit Enter. netstat -abno. ...
Find the Port that you are listening on under "Local Address"
Look at the process name directly under that.
在给定计算机上找到服务 运行 的 PID 后,打开任务管理器并按 PID 对 运行 进程进行排序。找到您的目标 PID 右键单击并转到服务,右键单击该服务并停止该服务。在不启动 apache 2.4 服务的情况下,只需获取此路径 "C:\Apache24\bin>httpd -k start" 然后输入即可。这就是我在经历许多起起伏伏后获得成功的方式。
OS 10048) 通常只允许每个套接字地址 (protocol/network address/port) 使用一次。 : AH00072: make_sock: 无法绑定到地址 [::]:80 (OS 10048) 通常只允许使用每个套接字地址 (protocol/network address/port) . :AH00072:make_sock:无法绑定到地址 0.0.0.0:80 AH00451:没有可用的侦听套接字,正在关闭 AH00015:无法打开日志
我在尝试启动 Apache2.4 时遇到了同样的错误。但是当我用 Listen 8080 替换 Listen 80 时(通过转到 httpd.conf 文件放置在 Apache24 文件夹内的 conf 文件夹中),我的问题解决了。
你可能仍然会收到关于端口 443 的投诉。如果你查看 httpd.conf,你将无法找到 443。但是,你会发现以下内容:
安全(SSL/TLS)个连接
包括“conf/extra/httpd-ssl.conf”
查看 httpd-ssl.conf 文件,将 443 替换为其他端口。
尽情享受吧!