通过yun命令安装sysstat软件包
通过yun命令安装sysstat软件包
通过yun命令安装sysstat软件包
bash: Iostat: command not found,解决iostat命令找不到的问题
[root@herry ~]# Iostat
-bash: Iostat: command not found
发现iostat命令不存在,这个是在安装系统的时候没有选择安装这个功能,需要使用yum 安装一
下安装包sysstat既可:
下安装包sysstat既可:
[root@herry ~]# yum install -y sysstat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.neu.edu.cn
* base: mirror.neu.edu.cn
* extras: mirror.neu.edu.cn
* updates: mirror.neu.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sysstat.i386 0:7.0.2-3.el5_5.1 set to be updated
--> Finished Dependency Resolution
www.2cto.com
Dependencies Resolved
========================================================================
Package Arch Version Repository Size
=========================================================================
Installing:
sysstat i386 7.0.2-3.el5_5.1 updates 170 k
Transaction Summary
=========================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
www.2cto.com
Total download size: 170 k
Downloading Packages:
sysstat-7.0.2-3.el5_5.1.i386.rpm | 170 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
updates/gpgkey | 1.5 kB 00:00
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-
key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : sysstat 1/1
Installed:
sysstat.i386 0:7.0.2-3.el5_5.1 www.2cto.com
Complete!
[root@herry ~]# iostat
Linux 2.6.18-194.el5 (herry.oracle.com) 03/15/2011
avg-cpu: %user %nice %system %iowait %steal %idle
0.01 0.00 0.05 0.02 0.00 99.92
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 1.42 15.41 38.71 10589105 26600276
sda1 0.00 0.00 0.00 1856 12
sda2 1.02 10.77 25.36 7404036 17429472
sda3 0.00 0.10 0.53 66691 362568
sda4 0.00 0.00 0.00 8 0
sda5 0.40 4.53 12.82 3116082 8808224
hdc 0.00 0.00 0.00 200 0
[root@herry ~]#
评论暂时关闭