作者:飞天二狭(2005年8月10日)
前言:LSOF(list open files)是针对Unix的诊断和分析工具,该工具可以通过进程与打开的文件系统进行联系,显示出由系统里正在运行的进程所打开的文件,也能显示出每一个进程的通讯socket。可是在Tru 64上并没有包含在系统里发行,出于对这个系统的特殊感情,我将这个免费的GUN软件的最新版本的安装和使用技巧在这里给大家做一个详细介绍,希望能给喜欢的网友提供帮助。我机器操作系统的版本为:tru 64 4.0F 。
一、LSOF 4.74安装过程
最新源码地址
ftp://sunsite.tus.ac.jp/pub/sun-info/Solaris/SOURCES/lsof-4.74.tar.gz
解压缩过程
# gunzip lsof-4.74.tar.gz
# tar -xvf lsof-4.74.tar
# cd lsof_4.74
# sum lsof_4.74_src.tar
27747 4044 lsof_4.74_src.tar(显示文件的校验和以及块数)
#tar –xvf lsof_4.74_src.tar
配置、编译及安装过程
# ./Configure du
Please enter the name of the subdirectory in /usr/sys that contains theconfiguration files for this host. Usually its name would be XP3, butthat subdirectory doesn't seem to exist. The lsof compilation needs headerfiles specific to this machine's configuration found in that directory.If you can't specify the appropriate configuration subdirectory, quit this Configure step now and generate a proper configuration subdirectory with the kernel generation process.
/usr/sys contains:
BINARY/ arch/ conf/ io/ net/ streams/ vfs/
XP003/ bin/ data/ kern/ nfs/ streamsm/
XP005/ bsd/ include/ kits/ procfs/ ufs/
Configuration subdirectory name? 你的主机名(大写)
Using header files in /usr/sys/XP003
Determining the ADVFS version -- this will take a while.The ADVFS version is 4.This configuration step (the Inventory script) takes inventory of the lsof distribution. The script runs for a minute or two while it checks that all the subdirectories, information files, scripts,header files and source files that should be present really are.
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 使用技巧 安装 文件 打开 ESTABLISHED 系统 显示 可以 |
注册
个人空间
