更新时间:2022-05-14 08:47:45
如果它的窗口尝试下面杀死正在运行的tomcat进程
If its windows try below to kill the running tomcat process
C:\Users\Saravana.Saravana-PC>netstat -ano | find ":8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1448
TCP 127.0.0.1:8080 127.0.0.1:49543 ESTABLISHED 1448
TCP 127.0.0.1:49543 127.0.0.1:8080 ESTABLISHED 4068
TCP [::]:8080 [::]:0 LISTENING 1448
TCP [::1]:8080 [::1]:49542 ESTABLISHED 1448
TCP [::1]:49542 [::1]:8080 ESTABLISHED 4068
C:\Users\Saravana.Saravana-PC>taskkill.exe /PID 1448 /F
SUCCESS: The process with PID 1448 has been terminated.
C:\Users\Saravana.Saravana-PC>
在Linux中如果 stopTomcat.sh
不是然后停止tomcat
In Linux if stopTomcat.sh
is not stopping tomcat then
ps -ef | grep "tomcat"
kill -9 <PID>
杀死tomcat的运行实例,杀死你的java应用程序不会杀死tomcat
kill the running instance of tomcat, killing your java application wont kill tomcat
要获取正在运行的tomcat端口,请使用 sudo netstat -lnp | grep< PID>
To get the running tomcat port use sudo netstat -lnp | grep <PID>