如何殺死在 Linux 中的特定端口上運行的進程? - How to kill a process running on particular port in Linux?

問題:

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?
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章