查看端口
netstat -ano|findstr "8080"
查看进程
tasklist|findstr "2612"
杀进程
①taskkill /im 进程名称
例如:taskkill /im qq.exe
②taskkill /pid 进程号 [-t](终止指定的进程和由它启用的子进程。) [-f]( 指定强制终止进程。)
例如:taskkill /pid 6200
③wmic process where name="进程名称" call terminate
例如:wmic process where name="QQ.exe" call terminate
本文介绍了如何使用命令行工具netstat和tasklist来查看本地计算机的开放端口和运行进程,并提供了杀进程的多种方法,包括使用taskkill命令、wmic命令和直接终止PID。
799

被折叠的 条评论
为什么被折叠?



