LSOF 安装与使用

Posted junle

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LSOF 安装与使用相关的知识,希望对你有一定的参考价值。

linux上安装: tar zxvf lsof_4.76.tar.gz cd lsof_4.76 ls 00.README.FIRST_4.76 lsof_4.76_src.tar.gz README.lsof_4.76 lsof_4.76_src.tar.sig RELEASE.SUMMARY_4.76 gunzip lsof_4.76_src.tar.gz cd lsof_4.76_src ls 00CREDITS 00PORTING arg.c dlsof.h dproto.h lsof main.c print.c store.c 00DCACHE 00QUICKSTART arg.o dmnt.c dsock.c lsof.8 main.o print.o store.o 00DIALECTS 00README Configure dmnt.o dsock.o lsof_fields.h Makefile proc.c tests 00DIST 00.README.FIRST Customize dnode.c dstore.c lsof.h misc.c proc.o usage.c 00FAQ 00TEST dfile.c dnode.o dstore.o lsof.man misc.o proto.h usage.o 00LSOF-L 00XCONFIG dfile.o dproc.c Inventory machine.h node.c regex.h version 00MANIFEST AFSConfig dialects dproc.o lib machine.h.old node.o scripts version.h ./Configure linux yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy make cp lsof /bin/lsof install end ............................................................. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 另:如果你的linux空间没有被释放。则 lsof |grep deleted kill 掉以上进程。但是比较重要的服务,这个操作要注意了,否则有可能导致某些服务不能用,这时候,这种情况,请看我另一个文章吧 ....... http://blog.csdn.net/miltonzhong/article/details/8845197

以上是关于LSOF 安装与使用的主要内容,如果未能解决你的问题,请参考以下文章

CentOS Linux 7 提示 lsof: 未找到命令

linux 查看端口被占用

lsof使用介绍与案例模板

Linux杀进程命令 lsof

Linux系统之查看进程监听端口方法

Linux- 系统随你玩之--好用到炸裂的系统级监控诊断工具