Solaris系统上安装top工具的详细过程

来源:互联网 发布:apache fastcgi 测试 编辑:程序博客网 时间:2024/05/30 23:38

在Solaris上安装TOP:
系统使用X86的Solaris 9,所以从下载top-3.5.1-sol9-intel-local.gz

# gzip -d top-3.5.1-sol9-intel-local.gz
# pkgadd -d top-3.5.1-sol9-intel-local

上面是简单的过程,下面介绍详细的。

top这个软件是不在sun给的那堆光盘中的,它是一个free software,可以到http://www.sunfreeware.com这里进行下载。我以solaris 9为例,其top package的下载链接为:ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/top-3.6-sol9-sparc-local.gz,如下以1234的方式简单的说说:

1、按之上的连接把top-3.6-sol9-sparc-local.gz存在你的机器上,并上传到服务器.我把它传到了/tmp/yang这个目录。


sun480-1#[/tmp/yang]ls -l
总数 432
-rw-r--r-- 1 root other 215455 6月 21 15:08 top-3.6-sol9-sparc-local.gz

2、用gzip解压缩


sun480-1#[/tmp/yang]gzip -d top-3.6-sol9-sparc-local.gz
sun480-1#[/tmp/yang]ls -l
总数 1216
-rw-r--r-- 1 root other 617984 6月 21 15:08 top-3.6-sol9-sparc-local

3、看到了top-3.6-sol9-sparc-local这个文件,千万别以为完活了呢,直接执行这个文件会报"top-3.6-sol9-sparc-local: SMCtop: 没找到"等等一堆错的。这一步该做pkgtrans操作了

# pkgadd -d top-3.6-sol9-sparc-local

The following packages are available:
1 SMCtop     top
                (sparc) 3.6

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all

Processing package instance <SMCtop> from </itse/top-3.6-sol9-sparc-local>

top
(sparc) 3.6
LeFebvre et al

The selected base directory </usr/local> must exist before
installation is attempted.

Do you want this directory created now [y,n,?,q] y
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing top as <SMCtop>

## Installing part 1 of 1.
/usr/local/bin/sparcv7/top
/usr/local/bin/sparcv9/top
/usr/local/bin/top
/usr/local/doc/top/Changes
/usr/local/doc/top/FAQ
/usr/local/doc/top/INSTALL
/usr/local/doc/top/LICENSE
/usr/local/doc/top/README
/usr/local/doc/top/Y2K
/usr/local/man/man1/top.1
[ verifying class <none> ]

Installation of <SMCtop> was successful.
#

最后设置你的path变量为你的top安装路径,方便使用。

原创粉丝点击