XAMPP 不能正常工作
XAMPP won't work it says
Port 80 in use by "Unable to open process" with PID 4!
6:32:24 PM [Apache] Apache WILL NOT start without the configured ports free!
6:32:24 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
6:32:24 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
我已经尝试了一切,从删除万维网发布服务(它没有工作,因为我什至没有安装它.)到使用显示的命令提示符
I have tried everything from deleting the World Wide Web Publishing Service (which did not work because i dont even have it installed.) To using the command prompt which says
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 Dave:0 LISTENING 4
TCP 0.0.0.0:135 Dave:0 LISTENING 776
TCP 0.0.0.0:445 Dave:0 LISTENING 4
TCP 0.0.0.0:2382 Dave:0 LISTENING 2576
TCP 0.0.0.0:5357 Dave:0 LISTENING 4
TCP 0.0.0.0:49152 Dave:0 LISTENING 548
TCP 0.0.0.0:49153 Dave:0 LISTENING 928
TCP 0.0.0.0:49154 Dave:0 LISTENING 972
TCP 0.0.0.0:49155 Dave:0 LISTENING 1264
TCP 0.0.0.0:49156 Dave:0 LISTENING 660
TCP 0.0.0.0:49157 Dave:0 LISTENING 1832
TCP 0.0.0.0:49159 Dave:0 LISTENING 652
TCP 0.0.0.0:51782 Dave:0 LISTENING 1884
TCP 127.0.0.1:51783 Dave:0 LISTENING 1884
TCP 192.168.0.16:139 Dave:0 LISTENING 4
TCP 192.168.0.16:50260 stackoverflow:https ESTABLISHED 5768
TCP 192.168.0.16:50263 ec2-54-237-50-81:https ESTABLISHED 5768
TCP 192.168.0.16:50287 bn1wns1011221:https ESTABLISHED 1640
TCP 192.168.0.16:50456 bn1wns2011310:https ESTABLISHED 1640
TCP 192.168.0.16:50489 stackoverflow:http ESTABLISHED 5768
我不明白为什么它不工作,因为几天前工作正常,有人可以帮忙吗,谢谢.当我执行 netstat -a -b 时,它会这样说.
I dont understand why its not working because it was working fine a couple days ago could someone help please, thanks.When i do netstat -a -b it says this.
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:WINDOWSsystem32>netstat -a -b
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:80 Dave:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:82 Dave:0 LISTENING
[httpd.exe]
TCP 0.0.0.0:135 Dave:0 LISTENING
RpcSs
[svchost.exe]
TCP 0.0.0.0:443 Dave:0 LISTENING
[httpd.exe]
TCP 0.0.0.0:445 Dave:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:2382 Dave:0 LISTENING
[sqlbrowser.exe]
TCP 0.0.0.0:3306 Dave:0 LISTENING
[mysqld.exe]
TCP 0.0.0.0:3306 Dave:0 LISTENING
[mysqld.exe]
TCP 0.0.0.0:5357 Dave:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:49152 Dave:0 LISTENING
[wininit.exe]
TCP 0.0.0.0:49153 Dave:0 LISTENING
EventLog
[svchost.exe]
TCP 0.0.0.0:49154 Dave:0 LISTENING
Schedule
[svchost.exe]
TCP 0.0.0.0:49155 Dave:0 LISTENING
[spoolsv.exe]
TCP 0.0.0.0:49156 Dave:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:49157 Dave:0 LISTENING
[msmdsrv.exe]
TCP 0.0.0.0:49159 Dave:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:51782 Dave:0 LISTENING
[sqlservr.exe]
TCP 127.0.0.1:51783 Dave:0 LISTENING
[sqlservr.exe]
TCP 192.168.0.16:139 Dave:0 LISTENING
Can not obtain ownership information
TCP 192.168.0.16:49180 bn1wns2011302:https ESTABLISHED
[Explorer.EXE]
TCP 192.168.0.16:49267 ec2-54-80-62-105:https ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49318 bn1wns2011304:https ESTABLISHED
[Explorer.EXE]
TCP 192.168.0.16:49397 ord08s08-in-f14:http ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49417 ord08s08-in-f14:http ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49418 ord08s09-in-f5:http ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49427 static-acs-24-101-16-41:http TIME_WAIT
TCP 192.168.0.16:49428 static-acs-24-101-16-24:http TIME_WAIT
TCP 192.168.0.16:49429 static-acs-24-101-16-41:http TIME_WAIT
TCP 192.168.0.16:49430 static-acs-24-101-16-41:http TIME_WAIT
TCP 192.168.0.16:49431 static-acs-24-101-16-41:http TIME_WAIT
TCP 192.168.0.16:49432 ord08s08-in-f2:http ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49434 ord08s08-in-f5:http ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49435 ord08s08-in-f5:http ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49436 ord08s08-in-f5:http ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49437 ord08s08-in-f5:http ESTABLISHED
[opera.exe]
TCP 192.168.0.16:49438 ord08s08-in-f5:http ESTABLISHED
[opera.exe]
只需将 Apache 设置为侦听不同的端口即可.这可以通过单击与Apache"模块同一行的Config"按钮来完成,在下拉列表中选择httpd.conf"文件,然后将Listen 80"行更改为Listen 8080".保存文件并关闭它.
Simply set Apache to listen on a different port. This can be done by clicking on the "Config" button on the same line as the "Apache" module, select the "httpd.conf" file in the dropdown, then change the "Listen 80" line to "Listen 8080". Save the file and close it.
现在它避免使用端口 80 并使用端口 8080 而不是问题.您需要做的唯一额外的事情是确保将 localhost:8080 放在浏览器中,以便浏览器知道在端口 8080 上查找.否则它默认为端口 80 并且不会找到您的本地站点.
Now it avoids Port 80 and uses Port 8080 instead without issue. The only additional thing you need to do is make sure to put localhost:8080 in the browser so the browser knows to look on Port 8080. Otherwise it defaults to Port 80 and won't find your local site.
这篇关于“无法打开进程"正在使用 XAMPP 端口 80PID 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!