1.查看占用8080端口的进程号

lsof -i:9092 | awk '{print $2}' | uniq | grep -P -o "[0-9]{2,5}"

2.查看使用java进程

(1)该进程使用java -jar方式启动,使用jps无法查找到进程信息

ps -ef | grep h2-bonc3.jar | grep 'grep' -v

( 2)pgrep -u $USER -f java

( 3 ) pidof java

 posted on 2017-07-28 18:29  ChaseForFuture  阅读(944)  评论(0编辑  收藏  举报