Windows系统Kill进程相关命令

查看被占用的端口的进程号
netstat -ano | findstr [端口号]

根据进程号杀死进程
taskkill /f /pid [进程号]

根据进程号查看进程名
tasklist | findstr [进程号]

根据进程名称杀死进程
taskkill /f /t /im [进程名称]

 如果端口还是被不知名进程占用

 netsh http show servicestate 查看使用端口的http链接

 

 

获取到进程号后

 

 在任务管理器中点击 详细信息-> 将PID排序后 找到相应进程杀掉

扫描二维码关注公众号,回复: 16106015 查看本文章

猜你喜欢

转载自blog.csdn.net/weixin_45313494/article/details/125886934