红联Linux门户
Linux帮助

Ubuntu安装sar出错Please check if data collecting is enabled

发布时间:2016-02-07 11:09:23来源:linux网站作者:張毅的技術部落

在Ubuntu系统下安装sar出错,信息为:Please check if data collecting is enabled in /etc/default/sysstat


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


本文永久更新地址:http://www.linuxdiyf.com/linux/17933.html