windows端口被占用
1 查询端口
netstat -ano
2 查询指定端口
netstat -ano | findstr "端口号"
3 根据进程PID查询进程名称
tasklist | findstr “进程PID号”
4 根据PID杀死任务
taskkill -f -pid “进程PID号”
5 根据进程名称杀死任务
taskkill -f -t -im “进程名称”
netstat -ano
netstat -ano | findstr "端口号"
tasklist | findstr “进程PID号”
taskkill -f -pid “进程PID号”
taskkill -f -t -im “进程名称”