Windows如何关闭被占用的端口? 1、以管理员权限运行cmd 2、查找被占用的端口,例如3306 netstat -ano | findstr 3306 3、关闭进程: taskkill -PID 7206 -F