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