查询端口号命令:
netstat -nao | findstr “端口号”
如图,查看8080端口号,发现被PID为2260的进程占用了
关闭占用端口命令:
taskkill /F /PID 进程PID
如图,关闭PID为2260的进程