【性能测试】服务器资源监测工具sar安装
1 [root@yyy ~]# sar 2 Cannot open /var/log/sa/sa19: No such file or directory
在Linux系统中,运行sar命令,发现无法执行;
原因是需要安装,安装命令如下:
1 [root@yyy ~]# yum install sysstat 2 Loaded plugins: fastestmirror 3 Setting up Install Process 4 Determining fastest mirrors 5 base | 3.7 kB 00:00 6 extras | 3.4 kB 00:00 7 extras/primary_db | 29 kB 00:00 8 updates | 3.4 kB 00:00 9 updates/primary_db | 3.7 MB 00:01 10 Resolving Dependencies 11 --> Running transaction check 12 ---> Package sysstat.x86_64 0:9.0.4-33.el6_9.1 will be installed 13 --> Finished Dependency Resolution 14 15 Dependencies Resolved 16 17 ============================================================================================================================================================================================================ 18 Package Arch Version Repository Size 19 ============================================================================================================================================================================================================ 20 Installing: 21 sysstat x86_64 9.0.4-33.el6_9.1 base 234 k 22 23 Transaction Summary 24 ============================================================================================================================================================================================================ 25 Install 1 Package(s) 26 27 Total download size: 234 k 28 Installed size: 826 k 29 Is this ok [y/N]: y 30 Downloading Packages: 31 sysstat-9.0.4-33.el6_9.1.x86_64.rpm | 234 kB 00:00 32 Running rpm_check_debug 33 Running Transaction Test 34 Transaction Test Succeeded 35 Running Transaction 36 Installing : sysstat-9.0.4-33.el6_9.1.x86_64 1/1 37 Verifying : sysstat-9.0.4-33.el6_9.1.x86_64 1/1 38 39 Installed: 40 sysstat.x86_64 0:9.0.4-33.el6_9.1 41 42 Complete!
安装完成,便可以正常使用sar相关命令,进行性能监测了。