windows系统关闭指定端口 一、在dos窗口中输入指令:netstat -ano | findstr 8080,其中8080是指你指定的端口号,然后会显示出现在占用该端口号的pid。 二、输入 taskkill /f /pid 19860,关闭该进程即可