Window checks the port occupation and stops the occupation process

View the process number of the port occupied

netstat -ano |findstr "port number"

View occupied processes:

tasklist |findstr "process id number"

Kill the process:

taskkill /f /t /im "process id or process name"

Guess you like

Origin blog.csdn.net/qq_34484062/article/details/123983542