Windows system occupied the port, use the command line to find and kill the process

netstat -aon | findstr port number (port number to find the process according to the above mentioned id)
tasklist | findstr process id (id find the process according to the process)
taskkill / pid process id / F (id kill the process according to the process)
taskkill / IM process name / F (according to process name to kill the process)

Guess you like

Origin www.cnblogs.com/mrnx2004/p/10931450.html