错误的XAMPP Apache的运行服务 [英] Error in running apache services from XAMPP
问题描述
我在几个月前安装了XAMPP,并已工作的罚款。但最近,当我打开它,我得到一个端口的错误被占用。
I installed XAMPP a few months ago and it has been working fine. But recently when I open it I get an error of a port being occupied.
现在,每当我开始我的XAMPP和运行Apache服务我得到这些错误:
Now whenever I start my XAMPP and run apache services I get these errors:
Apache Service detected with wrong path
Change XAMPP Apache settings or
Uninstall/disable the other service manually first
Found Path: ERROR: Not Able To Open Service Manager
Expected Path: "d:\my local server\xampp\apache\bin\httpd.exe" -k runservice
Problem detected!
Port 80 in use by "system"!
Apache WILL NOT start without the configured ports free!
You need to uninstall/disable/reconfigure the blocking application
or reconfigure Apache to listen on a different port
也许正在使用一些系统进程端口80
Perhaps Port 80 is being used by some system process?
做什么这些错误的意思是,我如何对付他们?
What do these errors mean and how do I deal with them?
推荐答案
重新配置Apache来使用不同的端口是pretty容易。
Reconfiguring Apache to use a different port is pretty easy.
- 找到Apache的配置文件(它可能是在
D:\\我的本地服务器\\ XAMPP的\\ apache的\\的conf
,但我从来没有用过XAMPP,所以我不积极)。该文件可能会被命名为的httpd.conf
。 - 查找以
端口
开始的行。这将可能是端口80
或端口127.0.0.1:80
。 - 在年底别的东西改变80。
- 重新启动您的服务。
- Find the configuration file for Apache (it's probably in
d:\my local server\xampp\apache\conf
, but I've never used XAMPP so I'm not positive). The file will probably be namedhttpd.conf
. - Look for a line that starts with
Port
. It will probably bePort 80
orPort 127.0.0.1:80
. - Change the 80 on the end to something else.
- Restart your service.
至于停止其他服务,你首先需要找出它是什么。由于这是80端口,你最有可能有另一个Web服务器上运行。看的第一个地方是你的服务小组(开始>润GT; SERVICES.MSC
)。寻找与阿帕奇什么
,网站
或网络
在标题。你可能已经安装了捆绑版本的Apache的其他软件,或者你可能已经安装了Internet信息服务器。
As for stopping the other service, you first need to find out what it is. Since this is port 80 you most likely have another web server running. The first place to look is your Services panel (Start > Run > services.msc
). Look for anything with Apache
, Web
or Internet
in the title. You might have installed other software that bundled a version of Apache, or you might have Internet Information Server installed.
如果您无法找到服务任何明显,你可以查找的使用该端口的进程。还有你可以下载到使这更容易的工具,但使用的股票工具,Windows附带:
If you can't find anything obvious in Services you can look for the process that's using that port. There are tools you can download to make this easier, but using the stock tools that ship with Windows:
- 打开一个命令提示符(
开始>润GT; CMD
) - 运行
-ao netstat的
- 查找在
本地地址
列与结尾的东西:80
或:HTTP
- 找到的
PID
该连接(最后一栏) - 运行任务管理器,转到
视图>选择列...
并启用PID列 - 对于PID 找到可执行文件的名称
- 使用谷歌要弄清楚这个过程是什么,它的使用,以及如何将其关闭(通常只是发现它在服务面板使用名称的问题)
- Open a command prompt (
Start > Run > cmd
) - Run
netstat -ao
- Look in the
Local Address
column for something ending with:80
or:http
- Find the
PID
for that connection (last column) - Run Task Manager, go to
View > Select Columns...
and enable the PID column - Find the executable name for that PID
- Use Google to figure out what that process is, what it's used for, and how to turn it off (usually just a matter of finding the name it uses in the Services panel)
这篇关于错误的XAMPP Apache的运行服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!