window环境下杀死tomcat

window环境下杀死进程

1、首先查找到占用8080端口的进程号PID是多少(tomcat默认是8080端口,假如你修改了tomcat的监听端口,请输入你的tomcat端口号)

netstat -ano | findstr 8080

这个命令输出的最后一列表示占用8080端口的进程号是多少,假设为9572

2、kill掉这个进程

taskkill /f /pid 9572

这样8080端口就是释放了。

原文地址:https://www.cnblogs.com/Bonker/p/5666060.html