好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

linux查看并终止进程 - Linux操作系统:Ubuntu_Cento

1,查看端口被那个进程占用

例如: netstat -anp | grep 1160

ps:查看端口1169被那个进程占用。

2,查找进程

例如 :ps -ef | grep 'tomcat'

ps:查找出进程名里含有 tomcat的进程

3,终止进程

一般终止进程的方法是如:

ps:终止进程号为8080的进程

如果上面的命令终止不了进程可以使用 killall命令进程终止

ps:强制终止进程号为8080的进程

查看更多关于linux查看并终止进程 - Linux操作系统:Ubuntu_Cento的详细内容...

  阅读:48次