Ubuntu 安装 sar 并监控系统状态


Ubuntu 安装 sar 并监控系统状态

  1. 安装 sar
1
sudo apt-get install sysstat
  1. 修改配置文件
1
sudo vim /etc/default/sysstat

内容

1
2
3
4
5
6
----
# 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"
----
  1. 重启sysstat服务
1
sudo service sysstat restart