通過yun命令安裝sysstat軟體包 bash: Iostat: command not found,解決iostat命令找不到的問題 [root@herry ~]# Iostat-bash: Iostat: command not found 發現iostat命令不存在,這個是在安裝系統的時候沒有選擇安裝這個功能,需要使用yum 安裝一
下安裝包sysstat既可:[root@herry ~]# yum install -y sysstatLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * addons: mirror.neu.edu.cn * base: mirror.neu.edu.cn * extras: mirror.neu.edu.cn * updates: mirror.neu.edu.cnSetting up Install ProcessResolving 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 kDownloading 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 e8562897updates/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-5Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction Installing : sysstat 1/1 Installed: sysstat.i386 0:7.0.2-3.el5_5.1 www.2cto.com Complete![root@herry ~]# iostatLinux 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_wrtnsda 1.42 15.41 38.71 10589105 26600276sda1 0.00 0.00 0.00 1856 12sda2 1.02 10.77 25.36 7404036 17429472sda3 0.00 0.10 0.53 66691 362568sda4 0.00 0.00 0.00 8 0sda5 0.40 4.53 12.82 3116082 8808224hdc 0.00 0.00 0.00 200 0 [root@herry ~]#