問題:
I tried to close the tomcat using ./shutdown.sh
from tomcat /bin
directory.我嘗試使用./shutdown.sh
從 tomcat /bin
目錄關閉 tomcat。 But found that the server was not closed properly.但是發現服務器沒有正常關閉。 And thus I was unable to restart因此我無法重新啓動
My tomcat is running on port 8080
.我的 tomcat 在端口8080
上運行。
I want to kill the tomcat process running on 8080
.我想殺死在8080
運行的 tomcat 進程。 I first want to have the list of processes running on a specific port (8080) in order to select which process to kill.我首先想要在特定端口 (8080) 上運行的進程列表,以便選擇要殺死的進程。
解決方案:
參考一: https://stackoom.com/question/mbPe參考二: How to kill a process running on particular port in Linux?