1、输入命令查看被占用的端口的进程
// port为自己的端口号
netstat -aon|findstr port
//例如 netstat -aon|findstr 80
2、根据PID来找到占用端口的进程
tasklist|findstr id
3、通过进程的名称来使用命令down掉进程
taskkill /f /t /im xxx.exe
1、输入命令查看被占用的端口的进程
// port为自己的端口号
netstat -aon|findstr port
//例如 netstat -aon|findstr 80
2、根据PID来找到占用端口的进程
tasklist|findstr id
3、通过进程的名称来使用命令down掉进程
taskkill /f /t /im xxx.exe