How does Windows close the occupied port?

How does Windows close the occupied port?

1. Run cmd with administrator privileges

2. Find the occupied port, such as 3306

netstat -ano | findstr 3306
insert image description here

3. Close the process:

taskkill -PID 7206 -F
insert image description here

Guess you like

Origin blog.csdn.net/qq_45697116/article/details/124527960