Window netstat -ano|findstr "端口号" taskkill -f -pid "进程id" Linux ps -ef |grep tomcat kill -9 5144 --5144为进程号