前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >linux 查看程序路径lsof

linux 查看程序路径lsof

作者头像
葫芦
发布2019-04-17 14:11:38
8.4K0
发布2019-04-17 14:11:38
举报
文章被收录于专栏:葫芦
代码语言:javascript
复制
[root@wangzi teg]# ps -ef|grep nginx
root      9385     1  0 10月01 ?      00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
www       9387  9385  0 10月01 ?      00:00:00 nginx: worker process
root     15304 21618  0 01:08 pts/0    00:00:00 grep --color=auto nginx
[root@wangzi teg]# ps -ef|grep nginx|grep master
root      9385     1  0 10月01 ?      00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@wangzi teg]# lsof -p 9385
COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF     NODE NAME
nginx   9385 root  cwd    DIR              253,1     4096   649475 /usr/local/nginx/logs
nginx   9385 root  rtd    DIR              253,1     4096        2 /
nginx   9385 root  txt    REG              253,1  7438328   543015 /usr/local/nginx/sbin/nginx
nginx   9385 root  mem    REG              253,1    62184   328361 /usr/lib64/libnss_files-2.17.so
nginx   9385 root  mem    REG              253,1    11384   328288 /usr/lib64/libfreebl3.so
nginx   9385 root  mem    REG              253,1  2127336   328343 /usr/lib64/libc-2.17.so
nginx   9385 root  mem    REG              253,1    41080   328347 /usr/lib64/libcrypt-2.17.so
nginx   9385 root  mem    REG              253,1   144792   328369 /usr/lib64/libpthread-2.17.so
nginx   9385 root  mem    REG              253,1    19776   328349 /usr/lib64/libdl-2.17.so
nginx   9385 root  mem    REG              253,1   164112   328336 /usr/lib64/ld-2.17.so
nginx   9385 root  DEL    REG                0,4          13246881 /dev/zero
nginx   9385 root    0u   CHR                1,3      0t0     4856 /dev/null
nginx   9385 root    1u   CHR                1,3      0t0     4856 /dev/null
nginx   9385 root    2w   REG              253,1   240767   647169 /usr/local/nginx/logs/error.log
nginx   9385 root    3u  unix 0xffff880036e7d000      0t0 13246884 socket
nginx   9385 root    4w   REG              253,1  6165463   647171 /usr/local/nginx/logs/access.log
nginx   9385 root    5w   REG              253,1   240767   647169 /usr/local/nginx/logs/error.log
nginx   9385 root    6u  IPv4           13246879      0t0      TCP *:http (LISTEN)
nginx   9385 root    7u  IPv4           13246880      0t0      TCP *:https (LISTEN)
nginx   9385 root    8u  unix 0xffff880036cdbc00      0t0 13246885 socket
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2016/11/11 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档