Java 端口 8080 已被使用,没有列出使用 8080 的进程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19965838/
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
port 8080 is already in use and no process using 8080 has been listed
提问by Kinga Garczyńska
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. 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).
本地主机上的 Tomcat v6.0 服务器所需的端口 8080 已在使用中。服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。要启动此服务器,您需要停止其他进程或更改端口号。
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
. I also tried:
但是在列表中没有使用PID = 8080
. 我也试过:
netstat -aon | find "8080"
But it also didn't find anything. Can anyone help me?
但它也没有找到任何东西。谁能帮我?
采纳答案by Jon Skeet
PID is the process ID - not the port number. You need to look for an entry with ":8080" at the end of the address/port part (the second column). 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 是进程 ID - 不是端口号。您需要在地址/端口部分(第二列)的末尾查找带有“:8080”的条目。然后,您可以查看 PID 并使用任务管理器来确定涉及哪个进程……或者运行netstat -abn
它将显示进程名称(但必须在管理员帐户下运行)。
Having said that, I wouldexpect 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 服务器。
回答by Sachidanand09
Open eclipse go to Servers panel, right click or press F3to open Overview window and go to Ports (Modify the server ports). You will get the following:
打开 eclipse 进入 Servers 面板,右键单击或按下F3打开 Overview 窗口并进入 Ports(修改服务器端口)。您将获得以下信息:
tomcat adminport
HTTP/1.1
AJP/1.3
You can change the port numbers (e.g. HTTP/1.1 port number 8080 to 8082).
您可以更改端口号(例如 HTTP/1.1 端口号 8080 到 8082)。
回答by akcHitman
In windows " wmic process where processid="pid of the process running" get commandline" worked for me. The culprit was wrapper.exeprocess of webhuddlejboss soft.
在 Windows 中,“ wmic process where processid="pid of the process running" get commandline"为我工作。罪魁祸首是webhuddlejboss soft 的wrapper.exe进程。
回答by Arun Kumar
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. then you can change the port.
如果任何其他进程正在使用端口 8080,并且您无需打扰它。然后你可以改变端口。