执行
[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 ]
网友评论