cmd || windows finds the process occupying the port and kills it

netstat -aon|findstr "38764" //View the last digit of the PID corresponding to the occupied port is the PID

 

taskkill /F /PID 12808 //Mandatory /F parameter to kill all processes with pid 12808 including child processes (/T parameter)

linux:

lsof -i: 8080

kill -9 PID 

Guess you like

Origin blog.csdn.net/u014285237/article/details/128837959