- 論壇徽章:
- 0
|
我想把路由器上的日志放在sco機(jī)上如下:
more /etc/syslog.conf
# @(#) syslog.conf 77.1 98/07/24
#
# Portions Copyright (C) 1992-1998 The Santa Cruz Operation, Inc.
# All Rights Reserved.
# The information in this file is provided for the exclusive use of
# the licensees of The Santa Cruz Operation, Inc. Such users have the
# right to use, modify, and incorporate this code into other products
# for purposes authorized by the license agreement provided they include
# this notice and the associated copyright notice with any such product.
# The information in this file is provided "AS IS" without warranty.
#
# @(#)syslog.conf 4.3 Lachman System V STREAMS TCP source
#
*.debug /usr/adm/syslog
#local7.debug /var/adm/3662b
我想重起syslogd,是不是這樣?
/etc/syslogd -d -r
off & running....
init
attempting to open source named pipe (fn = 0x804bae0)
success - fd = 3
attempting to open source internet domain socket (fn = 0x804bbf0)
bind fd 4, port 514
success - fd = 4
attempting to open source unix domain socket (fn = 0x804bed0)
success - fd = 6
attempting to open source os logger (fn = 0x804c140)
success - fd = 7
found 4 sources
cfline(*.debug /usr/adm/syslog)
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 X FILE: /usr/adm/syslog
logmsg: pri 56, flags 4, from qzj, msg syslogd: restart
Logging to FILE /usr/adm/syslog
syslogd: restarted
接下來就什么反映也沒有了,也沒有#提示符出現(xiàn),只看到光標(biāo)一閃閃的
ps -ef |grep syslogd
root 49 1 0 08:29:54 ? 00:00:00 /etc/syslogd
root 529 438 0 09:20:19 ttyp0 00:00:00 /etc/syslogd -d -r
這樣是不是就成功了? |
|