执行
[[email protected] log]# lsof |grep /var/log/messages
显示
rsyslogd 1409 root 4w REG 253,0 112065 247 /var/log/messages
[[email protected] log]# ls -al /proc/1409/fd/4
l-wx------. 1 root root 64 Jun 20 19:50 /proc/1409/fd/4 -> /var/log/messages
[[email protected] log]# service rsyslog restart
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
时间: 2024-10-16 15:39:32