windows 指定端口和进程查询

olin25 / 2023-09-05 / 原文

# 查看指定端口的进程PID

netstat -ano|findstr "8080"

# 查看指定PID的程序名称

tasklist|findstr "16916"