Resolve port number being occupied under Windows

For example, the occupied port number here is 20880

Step 1: Check the PID corresponding to the occupied port

netstat -aon|findstr "20880"

Insert picture description here

Step 2: View the process of the specified PID (this step can be skipped)

tasklist|findstr "4464"

Step 3: End the process

taskkill /T /F /PID 4464

Guess you like

Origin blog.csdn.net/Real_Fool_/article/details/111868146