1、安裝sysstat
apt-get install sysstat
2、安裝后無法使用:
Cannot open /var/log/sysstat/sa02: No such file or directory Please check if data collecting is enabled in /etc/default/sysstat
3、修改配置文件:vi /etc/default/sysstat
將False改為True
---- # Should sadc collect system activity informations? Valid values # are "true" and "false". Please do not put other values, they # will be overwritten by debconf! ENABLED="true" ----
4、重啟sysstat服務即可
service sysstat restart