kill 端口步骤:
1、netstat -aon|findstr 端口号
2、tasklist|findstr 进程号
3、 taskkill /f /t /im 应用名
例如:(""可以不打其实)
netstat -aon|findstr "8080"
系统返回:
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 10086
TCP [::]:8080 [::]:0 LISTENING 10086
👆没错,10086就是进程号
使用10086干掉进程:
taskkill -f /pid 10086
得到
成功: 已终止 PID 为 10086 的进程。