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
最新推荐文章于 2024-08-14 20:45:10 发布