lenmom

博客园 首页 新随笔 联系 订阅 管理

1. find the target process id of your java app

jps  [-lm]

in my case:

[lenmom@Mi-1701 bin]$ jps -l
5650 sun.tools.jps.Jps
20646 org.apache.doris.broker.hdfs.BrokerBootstrap
31814 org.apache.flume.node.Application

and I wana to find the location of  flume app in localmachine

 

2. use ps  auxef | grep {processid}

[lenmom@Mi-1701 bin]$ ps auxe | grep 31814

the PWD is the location of java app

 

posted on 2019-11-13 19:14  老董  阅读(135)  评论(0编辑  收藏  举报