ITeye博客

Windows按照端口关闭

jilin · 2017-05-02 16:24 · 工具 · Windows按照端口关闭 · 操作系统 · Markdown

1、查找2181端口的PID
netstat -ano|find "2181"

TCP    0.0.0.0:2181           0.0.0.0:0              LISTENING       14088
TCP    [::]:2181              [::]:0                 LISTENING       14088

最后一位就是PID
2、tasklist|find PID号,查看进程所属信息

C:\Users\EverSpring>tasklist|find "14088"
java.exe                     14088 Console                   20     62,656 K

 

3、taskkill /pid PID号 /t /f

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。