Windows端口占用查询

rem 通过端口号查询进程号
netstat -ano | findstr <端口号>

rem 通过进程号查找进程名称
tasklist | findstr <进程号>