/var/log/messages Logging not working on Centos 7

Posted 嗡嘛呢巴美吽舍

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了/var/log/messages Logging not working on Centos 7相关的知识,希望对你有一定的参考价值。

This was the solution, not permanent, though:

rm -f /var/lib/rsyslog/imjournal.state

systemctl restart rsyslog

 

 

ref:  https://serverfault.com/questions/743003/logging-not-working-on-centos-7

 

以上是关于/var/log/messages Logging not working on Centos 7的主要内容,如果未能解决你的问题,请参考以下文章

删除了linux系统上/var/log/messages该怎么?

/var/log/messages 不断重新填充

误删/var/log/messages的恢复方法

翻译自mos文章Linux的/var/log/messages是空的(0k),messages.0, messages.1也是空的

翻译自mos文章Linux的/var/log/messages是空的(0k),messages.0, messages.1也是空的

解决无/var/log/messages 问题