virtualbox|Virtualmin提示Current logrotate configuration is not valid错误

更新时间:2019-06-05    来源:Ubuntu    手机版     字体:

【www.bbyears.com--Ubuntu】

Virtualmin在检查验证是出现错误Current logrotate configuration is not valid出现的现象:
error: stat of /var/log/cron failed: No such file or directory

1.主要原因

Log file rotation 功能受限制

This was due to the syslog daemon not running. Check if the service is running and restart. Your server may have syslogd daemon on rsyslogd depending on your OS.

2.解决办法

我们首先查看一下状态

/etc/init.d/rsyslog status

出现

rsyslogd is stopped
rklogd is stopped
说明没有启动成功
 
然后在启动rsyslog

 /etc/init.d/rsyslog start

出现以下提示即可


Starting system logger: [ OK ]
Starting kernel logger: [ OK ]

我们在检查一下rsyslog是否启动

chkconfig –list | grep rsyslog

启动成功

rsyslog 0:off 1:off 2:off 3:off 4:off 5:off 6:off

没有安装或者其他则是这样提醒的

-list: unknown option
我们将设置一下rsyslog开机启动

chkconfig rsyslog on

这样就是行了,然后我们在点击检查就通过了!

Virtualmin提示Current logrotate configuration is not valid错误

本文来源:http://www.bbyears.com/caozuoxitong/53253.html