1.查询端口占用
netstat -ano | findstr "端口"
example: netstat -ano|findstr "8080"
2.杀死进程
taskkill -f -pid "pid"
Example: taskkill -f -pid "2136"
实际操作示例图解
1.查询端口占用
netstat -ano | findstr "端口"
example: netstat -ano|findstr "8080"
2.杀死进程
taskkill -f -pid "pid"
Example: taskkill -f -pid "2136"
实际操作示例图解