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