查找在Windows上使用端口的进程的PID [英] Find the PID of a process that uses a port on Windows

查看:95
本文介绍了查找在Windows上使用端口的进程的PID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务在使用经典启动时崩溃:

My service crash on startup with the classic:

java.rmi.server.ExportException: Listen failed on port: 9999

我如何找到杀死它的过程?

How can I find the process for killing it?

推荐答案

只需打开命令外壳并键入(假设您的端口为123456):

Just open a command shell and type (saying your port is 123456):

netstat -a -n -o | find "123456"

您将看到所需的一切.

标题为:

 Proto  Local Address          Foreign Address        State           PID
 TCP    0.0.0.0:37             0.0.0.0:0              LISTENING       1111

这篇关于查找在Windows上使用端口的进程的PID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆