首页 > 系统服务 > 详细

根据进程号查找路径

时间:2015-10-29 18:25:54      阅读:226      评论:0      收藏:0      [点我收藏+]

1、根据进程名称查出进程id

    pidof 程序名称

2、根据进程id查出该进程所在路径

    pwdx 进程id


eg:

pidof nginx

4161 3528 3527 3526 3525 3524 3523 3522 3521 3520

pwdx 4161

4161: /usr/local/services/nginx-1.6.2/sbin


根据进程号查找路径

原文:http://leyin01.blog.51cto.com/9062123/1707839

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!