linux 查看程序路径lsof

葫芦的运维日志

下一篇 搜索 上一篇

2016/11/11 01:09


[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

 

葫芦的运维日志

打赏

上一篇 搜索 下一篇
© 冰糖葫芦甜(bthlt.com) 2019 王梓 打赏联系方式 陕ICP备17005322号