Cool
Cool
Published on 2024-06-06 / 69 Visits
0
0

记录java启动时端口被占用,用netstat 命令查不到端口占用的解决办法

用命令netstat -ano | findstr查不到端口占用

image-sanz.png

用powershell查Get-Process -Id (Get-NetTCPConnection -LocalPort 9410).OwningProcess,能看到是微信占用了

image-ndpw.png

用 powershell 查具体端口(Get-NetTCPConnection -LocalPort 9410).OwningProcess,得到结果

image-hhvy.png

cmd 执行命令taskkill /PID 876 /F结束端口

image-yuxj.png


Comment