我刚刚在WIN 8机器上安装了WAMPSERVER(Apache/2.4.9(Win64)),当试图启动它时,它的图标总是红色/橙色(不是绿色).从尝试运行服务的服务我看到以下错误消息:
从偶数日志中,我看到以下多个错误
The wampapache64 service terminated with the following service-specific error: Incorrect function. The Apache service named reported the following error: >>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80 The Apache service named reported the following error: >>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80 The Apache service named reported the following error: >>> AH00015: Unable to open logs The Apache service named reported the following error: >>> AH00451: no listening sockets available, shutting down The wampapache64 service terminated with the following service-specific error: Incorrect function. The Apache service named reported the following error: >>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : AH00072: make_sock: could not bind to address [::]:80.
ATHER.. 21
好吧,我想通了:我的机器的端口80正在被IIS使用,而不是被Skype使用.以下是我发现的方式:
左键单击 WAMPManager图标以显示菜单.点击阿帕奇 ► 服务 ► 测试端口80.这将启动一个命令窗口并显示一些有关什么(如果有的话)使用端口80的信息.您可以在http://forum.wampserver.com/read.php?2,122527找到更多详细信息 .
配置Apache以侦听不同的端口
因为我想在端口80上继续运行IIS,所以我决定在不同的端口上运行我的WAMP服务器.所以我就是这样做的.
我不得不更改http.conf
文件,在我的情况下是在文件夹中C:/WAMP/bin/apache/apache2.4.9/conf/
.打开它(例如用记事本)并搜索80
.我不得不在不同的地方更改以下三行:
Listen 0.0.0.0:80 # Changed to Listen 0.0.0.0:81 Listen [::0]:80 # Changed to Listen [::0]:81 ServerName localhost:80 # Changed toServerName localhost:81
现在我在Windows 8上获得了WAMP Server的绿色图标.
有关http://forum.wampserver.com/read.php?2,13744的更多详细信息.
好吧,我想通了:我的机器的端口80正在被IIS使用,而不是被Skype使用.以下是我发现的方式:
左键单击 WAMPManager图标以显示菜单.点击阿帕奇 ► 服务 ► 测试端口80.这将启动一个命令窗口并显示一些有关什么(如果有的话)使用端口80的信息.您可以在http://forum.wampserver.com/read.php?2,122527找到更多详细信息 .
配置Apache以侦听不同的端口
因为我想在端口80上继续运行IIS,所以我决定在不同的端口上运行我的WAMP服务器.所以我就是这样做的.
我不得不更改http.conf
文件,在我的情况下是在文件夹中C:/WAMP/bin/apache/apache2.4.9/conf/
.打开它(例如用记事本)并搜索80
.我不得不在不同的地方更改以下三行:
Listen 0.0.0.0:80 # Changed to Listen 0.0.0.0:81 Listen [::0]:80 # Changed to Listen [::0]:81 ServerName localhost:80 # Changed toServerName localhost:81
现在我在Windows 8上获得了WAMP Server的绿色图标.
有关http://forum.wampserver.com/read.php?2,13744的更多详细信息.
如果您运行Skype,则必须在Skype中执行以下操作:在菜单栏中,单击工具 ► 选项 ► 高级设置 ► 连接.现在取消选中以下复选框:
使用端口80和443作为传入连接的替代方案