简体   繁体   English

端口 8080 已在使用中,并且没有列出使用 8080 的进程

[英]port 8080 is already in use and no process using 8080 has been listed

I am trying to start Tomcat from Eclipse, but a problem occured:我正在尝试从 Eclipse 启动 Tomcat,但出现了问题:

Port 8080 required by Tomcat v6.0 Server at localhost is already in use. Tomcat v6.0 服务器在 localhost 所需的端口 8080 已在使用中。 The server may already be running in another process, or a system process may be using the port.服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。 To start this server you will need to stop the other process or change the port number(s).要启动此服务器,您需要停止其他进程或更改端口号。

I tried to list processes connected to this port using command on Windows:我尝试在 Windows 上使用命令列出连接到此端口的进程:

netstat -aon

But on the listing there is no process with PID = 8080 .但是在清单上没有PID = 8080的进程。 I also tried:我也试过:

netstat -aon | find "8080"

But it also didn't find anything.但它也没有找到任何东西。 Can anyone help me?谁能帮我?

PID is the process ID - not the port number. PID是进程ID - 而不是端口号。 You need to look for an entry with ":8080" at the end of the address/port part (the second column). 您需要在地址/端口部分(第二列)的末尾查找带有“:8080”的条目。 Then you can look at the PID and use Task Manager to work out which process is involved... or run netstat -abn which will show the process names (but must be run under an administrator account). 然后,您可以查看PID并使用任务管理器来确定涉及哪个进程...或运行netstat -abn ,它将显示进程名称(但必须在管理员帐户下运行)。

Having said that, I would expect the find "8080" to find it... 话虽如此, 期望find "8080"找到它......

Another thing to do is just visit http://localhost:8080 - on that port, chances are it's a web server of some description. 另一件事就是访问http://localhost:8080 - 在该端口上,很可能是某个描述的Web服务器。

Open eclipse go to Servers panel, right click or press F3 to open Overview window and go to Ports (Modify the server ports). 打开eclipse转到Servers面板,右键单击或按F3打开Overview窗口并转到Ports(修改服务器端口)。 You will get the following: 您将获得以下内容:

tomcat adminport
HTTP/1.1
AJP/1.3

You can change the port numbers (eg HTTP/1.1 port number 8080 to 8082). 您可以更改端口号(例如HTTP / 1.1端口号8080到8082)。

In windows " wmic process where processid="pid of the process running" get commandline " worked for me. 在Windows“ wmic进程中,processid =”运行“get commandline的进程的pid为我工作。 The culprit was wrapper.exe process of webhuddle jboss soft. 罪魁祸首是webhuddle jboss soft的wrapper.exe进程。

If no other process is using the port 8080, Eventhough eclipse shows the port 8080 is used while starting the server in eclipse, first you have to stop the server by hitting the stop button in "Configure Tomcat"(which you can find in your start menu under tomcat folder), then try to start the server in eclipse then it will be started. 如果没有其他进程使用端口8080,则尽管eclipse显示在eclipse中启动服务器时使用了端口8080,首先必须通过点击“配置Tomcat”中的停止按钮来停止服务器(您可以在开始时找到)在tomcat文件夹下的菜单),然后尝试在eclipse中启动服务器然后它将启动。

If any other process is using the port 8080 and as well as you no need to disturb it. 如果任何其他进程正在使用端口8080,并且您不需要打扰它。 then you can change the port. 然后你可以改变端口。

In my case, there was a conflict with the virtualization function of Windows 10. This problem occurred after installing Hyper-V, virtual machine platform, and hypervisor platform to use hyper-v, docker, and bluestack together.在我的情况下,与Windows 10的虚拟化功能发生冲突。这个问题是在安装Hyper-V、虚拟机平台和hypervisor平台一起使用hyper-v、docker和bluestack后出现的。 Even if I check with netstat, it is not a port in use, and even if I restart Windows and change the port, it does not start up saying that it is in use for all ports.即使我检查 netstat,它也不是正在使用的端口,即使我重新启动 Windows 并更改端口,它也不会启动说它正在用于所有端口。 So, by changing the following services to Disabled in Windows Services, the Tomcat problem was solved, but bluestack, docker, etc. execution became impossible.于是,通过在Windows Services中将以下服务改为Disabled,Tomcat问题解决了,但是bluestack、docker等执行变得不可能了。 After starting Tomcat, when I manually changed the services again, bluestack was executed.启动Tomcat后,当我再次手动更改服务时,执行了bluestack。

Hyper-V Host Compute Service
HV Host Service
Host network service
Network virtualization service

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tomcat 服务器错误 - 端口 8080 已在使用中 - Tomcat Server Error - Port 8080 already in use JVM_Bind 端口 8080 已在使用中 -- 但该端口上没有进程 - JVM_Bind port 8080 already in use -- but there are no processes on that port Eclipse 中的端口已在使用 8080 错误提示,但它在运行时在 web 浏览器中的端口 8080 上工作 - Port already in use 8080 error prompts in Eclipse but it does work on port 8080 in web browser when running Web 服务器启动失败。 8080 端口已被使用 - Web server failed to start. Port 8080 was already in use 部署错误:Tomcat启动失败,服务器8080端口已被占用 - Deployment error:Starting of Tomcat failed, the server port 8080 is already in use Tomcat启动失败,服务器端口8080已被使用 - Starting of Tomcat failed, the server port 8080 is already in use “SYSTEM”已使用端口 8080 - Port 8080 already being used by "SYSTEM" “ java.net.BindException:已在使用的地址:JVM_Bind <null> :8080”,即使我使用netstat -ano检查了端口 - “java.net.BindException: Address already in use: JVM_Bind <null>:8080” even though i checked the port by using netstat -ano 配置为侦听端口 8080 的 Tomcat 连接器无法启动。 端口可能已在使用中或连接器可能配置错误 - The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured 几个端口(8080,8009)已在使用中 - Several ports (8080,8009) are already in use
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM