Windows常用命令

查看所有进程:

netstat -ano

 

查看指定端口的程序:

netstat -ano | findstr 9000 

杀死相关的进程:

taskkill /f /t /im 进程名称
taskkill /f /t /pid 进程号

说明:
/f 杀死所有进程及子进程
/t 强制杀死
/im 用镜像名称作为进程信息    
/pid 用进程id作为进程信息
原文地址:https://www.cnblogs.com/Baker-Street/p/12771597.html