Java 8080 端口已被“SYSTEM”使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23637905/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 00:27:47  来源:igfitidea点击:

Port 8080 already being used by "SYSTEM"

javaapachetomcatlocalhost

提问by ShwezGaiks

apache tomcat is not working on port 8080. I tried to figure out what program is running on port 8080 with the netstat command

apache tomcat 不在端口 8080 上工作。我试图用 netstat 命令找出端口 8080 上运行的程序

**C:\Users\SGaiks>netstat -aon | find ":8080"

  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       4

  TCP    [::]:8080              [::]:0                 LISTENING       4**

the program having PID 4 is running on port 8080, so I checked what program is having PID 4 in the task manager and I get SYSTEM (here are the details since I cannot post screenshots)

PID 为 4 的程序在端口 8080 上运行,所以我在任务管理器中检查了 PID 为 4 的程序,然后我得到了 SYSTEM(这里是详细信息,因为我无法发布屏幕截图)

Name :- SYSTEM
PID :- 4
Status :- Running
Username:- SYSTEM
CPU :- 01
Memory :- 88k
Description :- NT Kernal & System

what does this actually mean? how do i disable the program that is using port 8080?

这实际上是什么意思?如何禁用使用端口 8080 的程序?

I have seen many similar questions asked but that didn't help.

我看过很多类似的问题,但这并没有帮助。

(dont know if doing this is right) --> I also changed the port to some random port (localhost:2200) to run tomcat on localhost and it successfully runs. but I want it to run on localhost:8080

(不知道这样做是否正确)--> 我还将端口更改为某个随机端口(本地主机:2200)以在本地主机上运行 tomcat 并成功运行。但我希望它在localhost:8080上运行

采纳答案by Alexandre FILLATRE

Try to open a browser and go to http://localhost:8080. If you're lucky, you have another server running and it'll serve a page. Otherwise, I'll try to dig more to help you.

尝试打开浏览器并转到http://localhost:8080。如果你很幸运,你有另一台服务器在运行,它会提供一个页面。否则,我会试着挖掘更多来帮助你。

EDIT 1: The server seems to answer (even if the requested resource wasn't found), so you should have another server running. Take a look at http://support.microsoft.com/kb/284285for troubleshooting HTTP connexion problems, and give us the result

编辑 1:服务器似乎回答(即使未找到请求的资源),因此您应该运行另一台服务器。查看http://support.microsoft.com/kb/284285以解决 HTTP 连接问题,并将结果提供给我们

回答by limaechooscar

Issue was found: For some reason windows Media Server was running in IIS Server stoped. Port 8080 is now OK and available to my app.

发现问题:由于某些原因,Windows 媒体服务器在 IIS 服务器中运行已停止。端口 8080 现在正常并可用于我的应用程序。

回答by alexandrul

In my case netstatwas unable to show the owning process even from an elevated command prompt.

在我的情况下netstat,即使从提升的命令提示符下也无法显示拥有过程。

As it turns out, the port was used by OracleXETNSListenerwhich was running under Local System.

事实证明,该端口被OracleXETNSListener它在Local System.