View occupied ports corresponding PID, type the command: netstat aon | findstr searches “8080” (8080 “, “can also), enter, write down the last digit, namely the PID, here is 8080
Continue to enter the tasklist | findstr searches “20104”, press enter, view occupies 8080 port is which process or program, the result is: the Java. Exe
① Kill by command:
taskkill /pid 20104 -f
Copy the code
② Task manager
Find the task and end it.Copy the code