How to get the process ID to kill a nohup process?

前端 未结 13 1959
醉酒成梦
醉酒成梦 2020-11-27 08:53

I\'m running a nohup process on the server. When I try to kill it my putty console closes instead.

this is how I try to find the process ID:

ps -ef |         


        
13条回答
  •  暖寄归人
    2020-11-27 09:29

    This works in Ubuntu

    Type this to find out the PID

    ps aux | grep java
    

    All the running process regarding to java will be shown

    In my case is

    johnjoe      3315  9.1  4.0 1465240 335728 ?      Sl   09:42   3:19 java -jar batch.jar
    

    Now kill it kill -9 3315

    The zombie process finally stopped.

提交回复
热议问题