How to kill Tomcat when running it from Eclipse?

后端 未结 5 2044
粉色の甜心
粉色の甜心 2021-01-31 03:25

I am running the Tomcat that gets delivered with your Eclipse download (no, I don\'t want to download and install the entire Tomcat), and sometimes it hangs when stopping or res

5条回答
  •  长情又很酷
    2021-01-31 03:35

    On Windows, if you know the port Tomcat listens to (below, it is 8080), you can find the PID of the Tomcat process and then kill it from cmd:

    > netstat -aon | find "8080"
      TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       2196
      TCP    [::]:8080              [::]:0                 LISTENING       2196
    > taskkill /pid 2196 /f
      SUCCESS: The process with PID 2196 has been terminated.
    

提交回复
热议问题