- 论坛徽章:
- 0
|
小弟是一新手,
最近新安装的solaris 10 for X86, 系统启动后运行/usr/sbin/syslogd
之后运行ps -ef | grep syslogd 显示如下:
root 2045 1592 0 16:31:30 pts/5 0:00 grep syslogd
root 2042 1 0 16:31:28 ? 0:00 /usr/sbin/syslogd
这是不是表明syslogd已经启动了?
如果syslogd已经启动了,系统就应该向/var/adm/messages文件中记日志了吧,可是
/var/adm/messages中始终是空的,没有一条记录。
我的/etc/syslog.conf文件内容如下:
#ident "@(#)syslog.conf 1.5 98/12/14 SMI" /* SunOS 5.0 */
#
# Copyright (c) 1991-1998 by Sun Microsystems, Inc.
# All rights reserved.
#
# syslog configuration file.
#
# This file is processed by m4 so be careful to quote (`') names
# that match m4 reserved words. Also, within ifdef's, arguments
# containing commas must be quoted.
#
*.err;kern.notice;auth.notice /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages
*.alert;kern.err;daemon.err operator
*.alert root
*.emerg *
# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.notice ifdef(`LOGHOST', /var/log/authlog, @loghost)
mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)
#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err /dev/sysmsg
user.err /var/adm/messages
user.alert `root, operator'
user.emerg *
)
问题不知道出在哪里,请各位高手帮忙,小弟不盛感激!!! |
|