【Windows】常用命令
查看所有运行的端口
netstat -ano
查看被占用的端口和对应的PID
netstat -aon|findstr "8081"
查看指定PID的进程
tasklist|findstr "9088"
结束进程
taskkill /T /F /PID 9088
/T
:包括子进程
/F
:强制杀死
netstat -ano
netstat -aon|findstr "8081"
tasklist|findstr "9088"
taskkill /T /F /PID 9088
/T
:包括子进程
/F
:强制杀死
评论区