netstat -ano | findstr PORT
tasklist | findstr PID
taskkill /im myprocess.exe /f
The "/f" is for "force". If you know the PID, then you can specify that, as in:
taskkill /pid 1234 /f
Check if a port is being used on a Windows machine
最新推荐文章于 2025-04-13 13:47:51 发布