|
Linux 使用sar收集性能分析數據步驟(按每月31天收集)
.確保sysstat工具已經安裝;
2.cd /etc/sysconfig; vi sysstat ,change history=7 to history=31 and save ;
3.cd /usr/lib/sa vi sa2 , change history=7 to history=31 and save ;
4.chkconfig --list sysstat make sure this service's status is on at run level 3;
5.service sysstat restart .
6.data collection cd /var/log/sa/; ls sa?? and extract the data you wanted with sar command . |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11783655/viewspace-442588/
,如需转载,请注明出处,否则将追究法律责任。