Ubuntu安装sar出错Please check if data collecting is enabled in /etc/default/sysstat

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于Ubuntu安装sar出错Please check if data collecting is enabled in /etc/default/sysstat的主要内容,如果未能解决你的问题,请参考以下文章

下载出错:Could not stop Cortex-M device!Please check the JTAG cable

Centos Install EPEL repository failed, please check it

Error when connecting to the GNS3 server: Cannot connect to http://127.0.0.1:3080. Please check if G

安装VisualSVN Server 报"Service 'VisualSVN Server' failed to start. Please check VisualSVN

vscode安装拓展插件失败 要求手动安装, 手动下载后导入安装仍然失败。(Error when installing ‘Python‘ extension. Please check the)

Error: A JNI error has occurred, please check your installation and try again