執行
[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 ]
本文出自 “jack_sunny” 博客,請務必保留此出處http://jacknl.blog.51cto.com/11743537/1791149