我目前在我的 XAMPP 上遇到问题。它说端口 80 正在被其他进程或程序使用。我尝试在我的任务管理器中查找程序或进程,但我找不到确切使用该端口的程序或进程。同时,由于我需要继续开发我的项目,我只是更改了 Apache 端口,但我并不认为这是正确的做法。
这是我使用端口 80 和 SSL 443 时 XAMPP 返回给我的错误
6:17:44 PM [Apache] Problem detected!
6:17:44 PM [Apache] Port 80 in use by "Unable to open process" with PID 4!
6:17:44 PM [Apache] Apache WILL NOT start without the configured ports free!
6:17:44 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
6:17:44 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
我不知道是什么Port 80 in use by "Unable to open process" with PID 4!
意思。正如我所说,我尝试寻找它,但我在具有 PID 4 的任务管理器中找不到任何进程或程序。请有人帮助我,我真的需要这个。谢谢你,我将不胜感激。
编辑:
网络统计-np TCP | find "80" 命令返回了一个这样的列表
TCP 127.0.0.1:1110 127.0.0.1:51480 TIME_WAIT
TCP 192.168.1.3:51032 108.160.162.110:80 ESTABLISHED
TCP 192.168.1.3:51104 173.194.127.37:80 ESTABLISHED
TCP 192.168.1.3:51221 74.125.128.95:80 ESTABLISHED
TCP 192.168.1.3:51226 120.28.35.33:80 ESTABLISHED
TCP 192.168.1.3:51402 66.29.212.73:80 ESTABLISHED
TCP 192.168.1.3:51406 74.125.128.156:80 ESTABLISHED
接下来我该怎么做?
额外的:
我试过了netstat -aon
。结果如下:
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:81 0.0.0.0:0 LISTENING 1468
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 548
TCP 0.0.0.0:444 0.0.0.0:0 LISTENING 1468
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:554 0.0.0.0:0 LISTENING 3168
TCP 0.0.0.0:1110 0.0.0.0:0 LISTENING 1944
TCP 0.0.0.0:2869 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 7624
TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:10243 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:49152 0.0.0.0:0 LISTENING 764
TCP 0.0.0.0:49153 0.0.0.0:0 LISTENING 920
TCP 0.0.0.0:49154 0.0.0.0:0 LISTENING 124
TCP 0.0.0.0:49156 0.0.0.0:0 LISTENING 872
TCP 0.0.0.0:49157 0.0.0.0:0 LISTENING 864
TCP 127.0.0.1:1110 127.0.0.1:51031 ESTABLISHED 1944
TCP 127.0.0.1:1110 127.0.0.1:51785 ESTABLISHED 1944
TCP 127.0.0.1:1110 127.0.0.1:52762 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52780 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52823 ESTABLISHED 1944
TCP 127.0.0.1:1110 127.0.0.1:52829 ESTABLISHED 1944
TCP 127.0.0.1:1110 127.0.0.1:52839 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52841 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52845 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52847 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52852 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52855 ESTABLISHED 1944
TCP 127.0.0.1:1110 127.0.0.1:52884 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52886 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52902 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52904 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52906 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52909 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52911 TIME_WAIT 0
TCP 127.0.0.1:1110 127.0.0.1:52913 CLOSE_WAIT 1944
TCP 127.0.0.1:3306 127.0.0.1:51127 ESTABLISHED 7624
TCP 127.0.0.1:3306 127.0.0.1:51945 ESTABLISHED 7624
TCP 127.0.0.1:3306 127.0.0.1:51949 ESTABLISHED 7624
TCP 127.0.0.1:3306 127.0.0.1:52009 ESTABLISHED 7624
TCP 127.0.0.1:3306 127.0.0.1:52398 ESTABLISHED 7624
TCP 127.0.0.1:3306 127.0.0.1:52400 ESTABLISHED 7624
TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING 1976
TCP 127.0.0.1:5354 127.0.0.1:49155 ESTABLISHED 1976
TCP 127.0.0.1:27015 0.0.0.0:0 LISTENING 1908
TCP 127.0.0.1:27015 127.0.0.1:49195 ESTABLISHED 1908
TCP 127.0.0.1:49155 127.0.0.1:5354 ESTABLISHED 1908
TCP 127.0.0.1:49195 127.0.0.1:27015 ESTABLISHED 4508
TCP 127.0.0.1:50796 0.0.0.0:0 LISTENING 7800
TCP 127.0.0.1:51031 127.0.0.1:1110 ESTABLISHED 4172
TCP 127.0.0.1:51127 127.0.0.1:3306 ESTABLISHED 7776
TCP 127.0.0.1:51785 127.0.0.1:1110 ESTABLISHED 4560
TCP 127.0.0.1:51945 127.0.0.1:3306 ESTABLISHED 7776
TCP 127.0.0.1:51949 127.0.0.1:3306 ESTABLISHED 7776
TCP 127.0.0.1:52009 127.0.0.1:3306 ESTABLISHED 7776
TCP 127.0.0.1:52398 127.0.0.1:3306 ESTABLISHED 7776
TCP 127.0.0.1:52400 127.0.0.1:3306 ESTABLISHED 7776
TCP 127.0.0.1:52784 127.0.0.1:1110 TIME_WAIT 0
TCP 127.0.0.1:52823 127.0.0.1:1110 ESTABLISHED 4560
TCP 127.0.0.1:52829 127.0.0.1:1110 ESTABLISHED 4560
TCP 127.0.0.1:52855 127.0.0.1:1110 ESTABLISHED 4560
TCP 127.0.0.1:52872 127.0.0.1:1110 TIME_WAIT 0
TCP 127.0.0.1:52913 127.0.0.1:1110 FIN_WAIT_2 4560
TCP 192.168.1.3:139 0.0.0.0:0 LISTENING 4
TCP 192.168.1.3:51032 108.160.162.110:80 ESTABLISHED 1944
TCP 192.168.1.3:51786 69.171.248.16:443 ESTABLISHED 1944
TCP 192.168.1.3:52824 31.13.68.16:443 ESTABLISHED 1944
TCP 192.168.1.3:52831 74.125.128.95:80 ESTABLISHED 1944
TCP 192.168.1.3:52858 173.194.127.37:80 ESTABLISHED 1944
TCP 192.168.1.3:52908 27.111.185.144:443 TIME_WAIT 0
TCP 192.168.1.3:52914 198.252.206.16:80 FIN_WAIT_2 1944
TCP [::]:80 [::]:0 LISTENING 4
TCP [::]:81 [::]:0 LISTENING 1468
TCP [::]:135 [::]:0 LISTENING 548
TCP [::]:444 [::]:0 LISTENING 1468
TCP [::]:445 [::]:0 LISTENING 4
TCP [::]:554 [::]:0 LISTENING 3168
TCP [::]:1110 [::]:0 LISTENING 1944
TCP [::]:2869 [::]:0 LISTENING 4
TCP [::]:3587 [::]:0 LISTENING 4904
TCP [::]:5357 [::]:0 LISTENING 4
TCP [::]:10243 [::]:0 LISTENING 4
TCP [::]:49152 [::]:0 LISTENING 764
TCP [::]:49153 [::]:0 LISTENING 920
TCP [::]:49154 [::]:0 LISTENING 124
TCP [::]:49156 [::]:0 LISTENING 872
TCP [::]:49157 [::]:0 LISTENING 864
UDP 0.0.0.0:500 *:* 124
UDP 0.0.0.0:3544 *:* 124
UDP 0.0.0.0:3702 *:* 1048
UDP 0.0.0.0:3702 *:* 1064
UDP 0.0.0.0:3702 *:* 1048
UDP 0.0.0.0:3702 *:* 3560
UDP 0.0.0.0:3702 *:* 1064
UDP 0.0.0.0:3702 *:* 3560
UDP 0.0.0.0:4500 *:* 124
UDP 0.0.0.0:5004 *:* 3168
UDP 0.0.0.0:5005 *:* 3168
UDP 0.0.0.0:5355 *:* 1328
UDP 0.0.0.0:49154 *:* 1976
UDP 0.0.0.0:59056 *:* 1048
UDP 0.0.0.0:59058 *:* 1064
UDP 0.0.0.0:60910 *:* 3560
UDP 127.0.0.1:1233 *:* 7048
UDP 127.0.0.1:1900 *:* 3560
UDP 127.0.0.1:49152 *:* 1908
UDP 127.0.0.1:49153 *:* 1908
UDP 127.0.0.1:49169 *:* 4508
UDP 127.0.0.1:49170 *:* 4508
UDP 127.0.0.1:51245 *:* 3560
UDP 127.0.0.1:64663 *:* 4560
UDP 192.168.1.3:137 *:* 4
UDP 192.168.1.3:138 *:* 4
UDP 192.168.1.3:1900 *:* 3560
UDP 192.168.1.3:5353 *:* 1976
UDP 192.168.1.3:51244 *:* 3560
UDP 192.168.1.3:62356 *:* 124
UDP [::]:500 *:* 124
UDP [::]:3540 *:* 4904
UDP [::]:3702 *:* 1064
UDP [::]:3702 *:* 1064
UDP [::]:3702 *:* 3560
UDP [::]:3702 *:* 1048
UDP [::]:3702 *:* 3560
UDP [::]:3702 *:* 1048
UDP [::]:4500 *:* 124
UDP [::]:5004 *:* 3168
UDP [::]:5005 *:* 3168
UDP [::]:5355 *:* 1328
UDP [::]:49155 *:* 1976
UDP [::]:59057 *:* 1048
UDP [::]:59059 *:* 1064
UDP [::]:60911 *:* 3560
UDP [::1]:1900 *:* 3560
UDP [::1]:5353 *:* 1976
UDP [::1]:51243 *:* 3560
UDP [fe80::99d4:6002:6b3a:4842%17]:546 *:* 920
UDP [fe80::99d4:6002:6b3a:4842%17]:1900 *:* 3560
UDP [fe80::99d4:6002:6b3a:4842%17]:51242 *:* 3560
使固定
所以我昨晚在一个 MS VS 项目上工作。我遇到了要求我在 Windows 功能上打开 .NET Framework 3.5 的错误(与本主题非常无关)。原来是罪魁祸首。因为我不再需要它,所以我只是将其关闭,然后繁荣,端口 80 已被释放。
这是一个非常非常孤立的案例,但有一天,这个线程可能会帮助某人。祝你们好运!感谢所有回答的人。对此,我真的非常感激。再次感谢!