windows 查看端口占用

来源:互联网 发布:学网络编程 编辑:程序博客网 时间:2024/05/29 17:53

windows 查看端口占用

查找端口对应的PID:

netstat -ano |findstr port

查找PID对应的位置(行):

netstat -aon|findstr pid

查找PID对应的进程:

tasklist|findstr pid

杀死进程:

taskkill /f /t /im 进程名称。