How to kill the process under linux

1, under linux how to kill the process:

  1) find the port occupied by the package name: ps aux | grep cbs_portal-1.0.1.jar (the package name)

  2) kill the process: kill 10942 (the port number)

PS:

--color = auto indicates the default display of the matched string. You can also set other colors, of course, you do not have this parameter is the default color. (Do not delete)

ps -aux display all trips include other users

Figure: 

 

 

Guess you like

Origin www.cnblogs.com/wendyw/p/11458417.html