手记

端口占用处理方法

端口被占用:

netstat -ano | findstr "PID port"

 taskkill /PID processid /t /f 

例如:

协议  本地地址          外部地址        状态        
TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       16248 
TCP    [::]:8080              [::]:0                 LISTENING       16248

netstat -ano | findstr 8080
taskkill /PID 16248 /t /f


0人推荐
随时随地看视频
慕课网APP