重庆思庄Oracle、Redhat认证学习论坛
标题: 误删/var/log/messages的恢复方法 [打印本页]
作者: 郑全 时间: 2019-12-6 15:28
标题: 误删/var/log/messages的恢复方法
执行
[root@localhost log]# lsof |grep /var/log/messages
显示
rsyslogd 1409 root 4w REG 253,0 112065 247 /var/log/messages
[root@localhost log]# ls -al /proc/1409/fd/4
l-wx------. 1 root root 64 Jun 20 19:50 /proc/1409/fd/4 -> /var/log/messages
[root@localhost log]# service rsyslog restart
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) |
Powered by Discuz! X3.2 |