windows查看端口

netstat -ano|findstr 24548

netstat :-a            显示所有连接和监听端口

-n            以数字形式显示地址和端口号。

  -o            显示与每个连接相关的所属进程 ID。

findstr 后面可以输入对应pid或者端口号,或者其他字符串

windows查看端口_第1张图片

 

 

查找对应pid的进程名称

tasklist|findstr 24548

 

3.杀掉进程:

taskkill -PID pid -F

你可能感兴趣的:(杂)