系统日志记录包含有记录系统日志信息的程序,比如内核处理意外事务的日志。
估计安装时间: 0.1 SBU
估计需要硬盘空间: 0.5 MB
系统日志安装包依赖于这些包: Binutils, Coreutils,GCC, Glibc,Make
分类: LINUX
2007-12-04 09:53:28
系统日志记录包含有记录系统日志信息的程序,比如内核处理意外事务的日志。
估计安装时间: 0.1 SBU
估计需要硬盘空间: 0.5 MB
系统日志安装包依赖于这些包: Binutils, Coreutils,GCC, Glibc,Make
系统日志安装包已经有和2.6的内核版本适应的发行版。确保那些发行了的功能已经被加入,请键入以下命令,打上补丁:
patch -Np1 -i ../sysklogd-1.4.1-kernel_headers-1.patch
这里也有一个手动逻辑信号处理的附加环境,并且这个有时会使sysklogd的中断脚本出现混乱。要修正这个BUG,请打上另一个补丁:
patch -Np1 -i ../sysklogd-1.4.1-signal-1.patch
接着安装:
make
安装包:
make install
创建一个新文件/etc/syslog.conf 请运行下面的命令:
cat > /etc/syslog.conf << "EOF" # Begin /etc/syslog.conf auth,authpriv.* -/var/log/auth.log *.*;auth,authpriv.none -/var/log/sys.log daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log mail.* -/var/log/mail.log user.* -/var/log/user.log *.emerg * # End /etc/syslog.conf EOF
已安装的包: klogd and syslogd
简短描述
一个系统守护进程,截获并且记录下LINUX内核日志信息。
记录下系统里所有提供日志记录的程序给出的日志和信息内容。每一个被记录的消息至少包含时间戳和主机名(通常还包括程序名)。
原文 ——— —— —— ——
The Sysklogd package contains programs for logging system messages,
such as those given by the kernel when unusual things happen.
Approximate build time: 0.1 SBU
Required disk space: 0.5 MB
Sysklogd installation depends on: Binutils, Coreutils,
GCC, Glibc, and Make
Sysklogd has issues with the Linux 2.6 kernel series. Fix these
issues by applying the following patch:
patch -Np1 -i ../sysklogd-1.4.1-kernel_headers-1.patch
There is also a race condition in the signal handling logic, and
this sometimes confuses the sysklogd initscript. Fix this bug by applying
another patch:
patch -Np1 -i ../sysklogd-1.4.1-signal-1.patch
Compile the package:
make
Install the package:
make install
Create a new file /etc/syslog.conf by
running the following:
cat > /etc/syslog.conf << "EOF" # Begin /etc/syslog.conf auth,authpriv.* -/var/log/auth.log *.*;auth,authpriv.none -/var/log/sys.log daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log mail.* -/var/log/mail.log user.* -/var/log/user.log *.emerg * # End /etc/syslog.conf EOF
Installed programs: klogd and syslogd
Short Descriptions