获取进程ID

ps -ef|grep nginx|awk 'NR==1{print $2}'  #获取进程第一个第一行ID

 

posted @ 2018-09-20 18:31  wuzhiyi  阅读(148)  评论(0编辑  收藏  举报