FreeBSD中
要記錄只出現在螢幕(console)下的訊息
#vi /etc/syslog.conf
========================
# uncomment this to log all writes to /dev/console to /var/log/console.log
# touch /var/log/console.log and chmod it to mode 600 before it will work

console.info           //不要註解掉
========================
#touch /var/log/console.log
#chmod 600 /var/log/console.log
#service syslogd restart

這樣在console(ttyv0)跳出訊息就會記錄下來
如:硬碟快掛時,可以看到訊息.......

arrow
arrow
    全站熱搜

    slinbody 發表在 痞客邦 留言(0) 人氣()