---
title: "通过yun命令安装 sysstat 软件包"
author: "qsfwy"
date: "2012-10-26T21:50:05Z"
tags: []
categories: ["操作系统"]
slug: "yun-sysstat"
draft: false
lastmod: "2012-10-26T21:50:05Z"
id: 1706363
url: "https://qsfwy.iteye.com/blog/1706363"
---

### bash: Iostat: command not found，解决iostat命令找不到的问题

**\[root@herry ~]# Iostat**  
\-bash: Iostat: command not found  
发现iostat命令不存在，这个是在安装系统的时候没有选择安装这个功能，需要使用yum 安装一下安装包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  
\--&gt; Running transaction check  
\---&gt; Package sysstat.i386 0:7.0.2-3.el5\_5.1 set to be updated  
\--&gt; Finished Dependency Resolution  
   
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)  
   
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) &lt;[centos-5-key@centos.org](mailto:centos-5-key@centos.org)&gt;" 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                                                                              
   
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 ~]#