无法更改是XAMPP默认配置Apache的端口号 [英] Unable to change Apache port number in Xampp

查看:2538
本文介绍了无法更改是XAMPP默认配置Apache的端口号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载Xampp时服务器 XAMPP-win32-1.8.2-0-VC9 .ZIP文件窗户,并试图启动Apache服务器。但是,服务器启动失败,以下消息:

I just downloaded Xampp server xampp-win32-1.8.2-0-VC9.zip file for windows and tried to start the apache server. But the server failed to start with the following message:

XAMPP now starts as a console application.

Instead of pressing Control-C in this console window, please use xampp_stop.exe
to stop XAMPP, because it lets XAMPP end any current transactions and cleanup
gracefully.

(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:
80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

所以很明显的端口号80已被占用。

So clearly the port number 80 is already occupied.

于是我就到apache / conf目录/ httpd.conf文件,发现该行:

So I went to the apache/conf/httpd.conf file and found the line:

#Listen 12.34.56.78:80
Listen 80

和改变上面的第二行

Listen 8010

因此​​,服务器必须从现在开始在端口号8010.But它不是启动HTTPS的默认端口号443,再次给予同样的错误:

So the server must now start at port number 8010.But its instead starting on https default port number 443 and again giving the same error:

XAMPP now starts as a console application.

Instead of pressing Control-C in this console window, please use xampp_stop.exe
to stop XAMPP, because it lets XAMPP end any current transactions and cleanup
gracefully.

(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:
443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

所以,我应该怎么做我选择的端口号的服务器运行,为什么我的方法不工作。至于我记得,该方法用于在早期版本的XAMPP的工作,但现在不工作。

So how should I make the server run at the port number of my choice and why is my approach not working. As far as I can remember, the approach used to work on earlier versions of xampp but is not working now.

推荐答案

我跑setup_xampp.bat和编辑从使用Apache的配置按钮控制面板的端口号。然后我发现这行 80收听并通过编辑这一行更改端口号81。这解决了我的问题。

I ran setup_xampp.bat and edited the port number from the control panes using the config button of apache. Then I found this line Listen 80 and change the port number to 81 by editing this line. This solved the problem for me.

这篇关于无法更改是XAMPP默认配置Apache的端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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