centos服务器使用iostat命令

2025-11-21 22:52:29

1、安装iostat,安装这个命令不是直接安装iostat,二是安装sysstat。

yum在线安装

# yum  -y  install  sysstat

centos服务器使用iostat命令

2、或者下载sys的rpm包,选择rpm安装。

#rpm  -ivh  sysstat-9.0.4-33.el6.x86_64.rpm

centos服务器使用iostat命令

3、使用iostat命令。

#iostat

centos服务器使用iostat命令

4、查看帮助。

#iostat --help

iostat 后面跟操作,然后是时间间隔,然后是统计次数。

centos服务器使用iostat命令

5、查看cpu使用情况。

#iostat -c  1  10

命令的含义是查看cpu,每秒搜集一次,共搜集10次。

从结果中可以看到idle,iowait信息。

centos服务器使用iostat命令

6、查看磁盘的读写情况。

#iostat -d  1 10

centos服务器使用iostat命令

7、cpu和磁盘读写一起看。

#iostat -c -d 1 10

centos服务器使用iostat命令

8、也可以执行命令:

#iostat -x  1 10

centos服务器使用iostat命令

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢