hadoop调试技巧--解除已经绑定的端口

在windows 的cmd下 解除已经绑定的端口:

1 开始-运行-cmd,输入:

netstat -aon|findstr “端口号”

netstat -aon|findstr “9528”

通过端口号,查看对应进程。
这里写图片描述

2 找到进程号对应的进程名称:

tasklist|findstr “进程号”

如: tasklist|findstr “2932”。

这里写图片描述

3 使用任务管理器找到对应pid,点击结束进程
这里写图片描述
或者
根据进程名称杀死进程:taskkill /f /t /im 进程名称,如:
taskkill /f /t /im javaw.exe。
这里写图片描述

原文地址:https://www.cnblogs.com/shiguangmanbu2016/p/5932892.html