Kill a java process (in linux) by process name instead of PID

前端 未结 4 607
北荒
北荒 2021-01-01 23:19

While configuring/installing Hadoop cluster we often need to kill a Java Process/Daemon. We see Java Processes/Daemons running with jps command. Usually we kil

4条回答
  •  轮回少年
    2021-01-02 00:01

    jps -l has helped me killing the process

    kill `jps -l | grep "myjarname.jar" | cut -d " " -f 1`
    

提交回复
热议问题