使用PID 4的“无法打开进程”的XAMPP端口80[重复]

时间:2023-02-01 18:14:56

This question already has an answer here:

这个问题已经有了答案:

XAMPP won't work it says

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

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     *: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     *:http     ESTABLISHED     5768

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.

我不明白为什么它不工作,因为几天前它工作得很好。当我写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]

4 个解决方案

#1


41  

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.

只需将Apache设置为监听另一个端口。这可以通过单击与“Apache”模块位于同一行的“Config”按钮来完成,选择“httpd”。conf文件在下拉列表中,然后将“Listen 80”行改为“Listen 8080”。保存文件并关闭它。

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.

现在它避免了端口80,而是使用端口8080,没有问题。您需要做的惟一额外的事情是确保在浏览器中放置localhost:8080,以便浏览器知道如何查看端口8080。否则它默认为端口80,不会找到您的本地站点。

#2


24  

So I have faced the same problem when trying to start apache service and I would like to share my solutions with you. Here is some notes about services or programs that may use port 80:

所以我在尝试启动apache服务时遇到了同样的问题,我想与您分享我的解决方案。这里有一些关于可能使用端口80的服务或程序的说明:

  1. Skype: skype uses port 80/443 by default. You can change this from tools->options-> advanced->connections and disable checkbox "use port 80 and 443 for addtional incoming connections".
  2. Skype: Skype默认使用80/443端口。您可以从工具(>选项->高级->连接)更改此选项,并禁用复选框“使用端口80和443进行附加传入连接”。
  3. IIS: IIS uses port 80 be default so you need to shut down it. You can use the following two commands net stop w3svc net stop iisadmin
  4. IIS: IIS使用端口80是默认的,所以您需要关闭它。您可以使用以下两个命令:net stop w3svc net stop iisadmin
  5. SQL Server Reporting Service: You need to stop this service because it may take port 80 if IIS is not running. Go to local services and stop it.
  6. SQL Server报告服务:您需要停止此服务,因为如果IIS没有运行,它可能需要端口80。去当地的服务机构停止。

These options work great with me and I can start apache service without errors.

这些选项对我非常有用,我可以在没有错误的情况下启动apache服务。

The other option is to change apache listen port from httpd.conf and set another port number.

另一个选项是从httpd更改apache监听端口。conf并设置另一个端口号。

Hope this solution helps anyone who face the same problem again.

希望这个解决方案能帮助所有面临同样问题的人。

#3


12  

Your port 80 is being used by the system.

系统正在使用您的端口80。

  1. In Windows “World Wide Publishing" Service is using this port and it's process is system which PID is 4 maximum time and stopping this service(“World Wide Publishing") will free the port 80 and you can connect Apache using this port. To stop the service go to the “Task manager –> Services tab”, right click the “World Wide Publishing Service” and stop.
  2. 在Windows“World Wide Publishing”服务使用这个端口,它的进程是PID为4最大时间的系统,停止这个服务(“World Wide Publishing”)将释放端口80,你可以使用这个端口连接Apache。要停止服务,请转到“任务管理器- >服务选项卡”,右键单击“全球发布服务”并停止。
  3. If you don't find there then Then go to "Run > services.msc" and again find there and right click the “World Wide Publishing Service” and stop.
  4. 如果你没有找到,那就去“运行>服务”。再一次在那里找到并右键点击“世界范围的出版服务”并停止。
  5. If you didn't find “World Wide Publishing Service” there then go to "Run>>resmon.exe>> Network Tab>>Listening Ports" and see which process is using port 80
  6. 如果您没有找到“全球出版服务”,那么请转到“运行>>resmon”。exe>>网络标签>>监听端口,看看哪个进程正在使用端口80

使用PID 4的“无法打开进程”的XAMPP端口80[重复]

And from "Overview>>CPU" just Right click on that process and click "End Process Tree". If that process is system that might be a critical issue.

从“概述>>CPU”右键单击该进程,然后单击“结束进程树”。如果这个过程是一个系统,这可能是一个关键问题。

#4


6  

I had the following error message Port 80 in use by "Unable to open process" with PID 4! Apache WILL NOT start without the configured ports free! You need to uninstall/disable/reconfigure the blocking application or reconfigure Apache and the Control Panel to listen on a different port Starting Check-Timer Control Panel Ready

我有以下错误消息端口80在使用时“无法打开进程”PID 4!Apache将不会在没有配置端口的情况下启动!您需要卸载/禁用/重新配置阻塞应用程序或重新配置Apache和控制面板,以便随时监听另一个端口启动检查计时器控制面板

opened the httpd.conf and changed the listen port from 80 to 1234 in both places

打开httpd。conf并将两个地方的监听端口从80改为1234

Listen 12.34.56.78:1234

Listen 1234

听1234

Then go to Config for the xampp control panel and go to service and port setting and changed the port from 80 to 1234

然后转到xampp控制面板的Config,转到服务和端口设置,并将端口从80更改为1234

That worked.

这工作。

#1


41  

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.

只需将Apache设置为监听另一个端口。这可以通过单击与“Apache”模块位于同一行的“Config”按钮来完成,选择“httpd”。conf文件在下拉列表中,然后将“Listen 80”行改为“Listen 8080”。保存文件并关闭它。

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.

现在它避免了端口80,而是使用端口8080,没有问题。您需要做的惟一额外的事情是确保在浏览器中放置localhost:8080,以便浏览器知道如何查看端口8080。否则它默认为端口80,不会找到您的本地站点。

#2


24  

So I have faced the same problem when trying to start apache service and I would like to share my solutions with you. Here is some notes about services or programs that may use port 80:

所以我在尝试启动apache服务时遇到了同样的问题,我想与您分享我的解决方案。这里有一些关于可能使用端口80的服务或程序的说明:

  1. Skype: skype uses port 80/443 by default. You can change this from tools->options-> advanced->connections and disable checkbox "use port 80 and 443 for addtional incoming connections".
  2. Skype: Skype默认使用80/443端口。您可以从工具(>选项->高级->连接)更改此选项,并禁用复选框“使用端口80和443进行附加传入连接”。
  3. IIS: IIS uses port 80 be default so you need to shut down it. You can use the following two commands net stop w3svc net stop iisadmin
  4. IIS: IIS使用端口80是默认的,所以您需要关闭它。您可以使用以下两个命令:net stop w3svc net stop iisadmin
  5. SQL Server Reporting Service: You need to stop this service because it may take port 80 if IIS is not running. Go to local services and stop it.
  6. SQL Server报告服务:您需要停止此服务,因为如果IIS没有运行,它可能需要端口80。去当地的服务机构停止。

These options work great with me and I can start apache service without errors.

这些选项对我非常有用,我可以在没有错误的情况下启动apache服务。

The other option is to change apache listen port from httpd.conf and set another port number.

另一个选项是从httpd更改apache监听端口。conf并设置另一个端口号。

Hope this solution helps anyone who face the same problem again.

希望这个解决方案能帮助所有面临同样问题的人。

#3


12  

Your port 80 is being used by the system.

系统正在使用您的端口80。

  1. In Windows “World Wide Publishing" Service is using this port and it's process is system which PID is 4 maximum time and stopping this service(“World Wide Publishing") will free the port 80 and you can connect Apache using this port. To stop the service go to the “Task manager –> Services tab”, right click the “World Wide Publishing Service” and stop.
  2. 在Windows“World Wide Publishing”服务使用这个端口,它的进程是PID为4最大时间的系统,停止这个服务(“World Wide Publishing”)将释放端口80,你可以使用这个端口连接Apache。要停止服务,请转到“任务管理器- >服务选项卡”,右键单击“全球发布服务”并停止。
  3. If you don't find there then Then go to "Run > services.msc" and again find there and right click the “World Wide Publishing Service” and stop.
  4. 如果你没有找到,那就去“运行>服务”。再一次在那里找到并右键点击“世界范围的出版服务”并停止。
  5. If you didn't find “World Wide Publishing Service” there then go to "Run>>resmon.exe>> Network Tab>>Listening Ports" and see which process is using port 80
  6. 如果您没有找到“全球出版服务”,那么请转到“运行>>resmon”。exe>>网络标签>>监听端口,看看哪个进程正在使用端口80

使用PID 4的“无法打开进程”的XAMPP端口80[重复]

And from "Overview>>CPU" just Right click on that process and click "End Process Tree". If that process is system that might be a critical issue.

从“概述>>CPU”右键单击该进程,然后单击“结束进程树”。如果这个过程是一个系统,这可能是一个关键问题。

#4


6  

I had the following error message Port 80 in use by "Unable to open process" with PID 4! Apache WILL NOT start without the configured ports free! You need to uninstall/disable/reconfigure the blocking application or reconfigure Apache and the Control Panel to listen on a different port Starting Check-Timer Control Panel Ready

我有以下错误消息端口80在使用时“无法打开进程”PID 4!Apache将不会在没有配置端口的情况下启动!您需要卸载/禁用/重新配置阻塞应用程序或重新配置Apache和控制面板,以便随时监听另一个端口启动检查计时器控制面板

opened the httpd.conf and changed the listen port from 80 to 1234 in both places

打开httpd。conf并将两个地方的监听端口从80改为1234

Listen 12.34.56.78:1234

Listen 1234

听1234

Then go to Config for the xampp control panel and go to service and port setting and changed the port from 80 to 1234

然后转到xampp控制面板的Config,转到服务和端口设置,并将端口从80更改为1234

That worked.

这工作。