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