CMD command line to close the locally occupied port

WINDOWS command line to close the locally occupied port
1. Find the process occupied by the corresponding port:

netstat -aon|findstr "8091"

Find the PID number of the program that occupies port 8091;
2. Find the corresponding program according to the PID number:

tasklist|findstr "PID号" 

Find the corresponding program name;

Insert picture description here

Guess you like

Origin blog.csdn.net/m0_43413873/article/details/106763935