XAMPP不会工作说
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
我已经尝试了删除万维网发布服务(由于我甚至没有安装它而无法正常工作)。要使用命令提示符
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时它会说这个。
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>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]
答案 0 :(得分:48)
只需将Apache设置为侦听其他端口即可。这可以通过点击"配置"与" Apache"在同一行的按钮模块,选择" httpd.conf"在下拉列表中输入文件,然后更改" Listen 80"排到"听8080"。保存文件并关闭它。
现在它避免使用端口80并使用端口8080而不会出现问题。您需要做的唯一事情是确保将localhost:8080放在浏览器中,以便浏览器知道查看端口8080.否则它默认为端口80并且无法找到您的本地站点。
答案 1 :(得分:25)
因此,在尝试启动Apache服务时遇到了同样的问题,我想与您分享我的解决方案。 以下是有关可能使用端口80的服务或程序的一些注意事项:
这些选项对我很有用,我可以毫无错误地启动Apache服务。
另一个选项是从 httpd.conf 更改apache listen端口并设置另一个端口号。
希望此解决方案可以帮助任何再次面临同样问题的人。
答案 2 :(得分:17)
系统正在使用您的端口80.
从“概述>> CPU”中右键单击该流程,然后点击“结束流程树”。如果该过程是可能是关键问题的系统。
答案 3 :(得分:6)
我收到以下错误消息 正在使用的端口80"无法打开进程"与PID 4! 如果没有配置的端口,Apache将无法启动! 您需要卸载/禁用/重新配置阻止应用程序 或重新配置Apache和控制面板以侦听不同的端口 启动Check-Timer 控制面板就绪
打开httpd.conf并在两个地方将listen端口从80更改为1234
听1234
然后转到配置xampp控制面板并转到服务和端口设置并将端口从80更改为1234
那很有效。