📄 sysklogd.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 10.49. Sysklogd-1.4.1 </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-MIPS"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS </h4> <h3> Chapter 10. Installing Basic System Software </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="shadow.html" title="Shadow-4.0.15">Prev</a> <p> Shadow-4.0.15 </p> </li> <li class="next"> <a accesskey="n" href="sysvinit.html" title= "Sysvinit-2.86">Next</a> <p> Sysvinit-2.86 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a> </li> </ul> </div> <div class="wrap" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 10.49. Sysklogd-1.4.1 </h1> </div> <div class="package" lang="en" xml:lang="en"> <p> The Sysklogd package contains programs for logging system messages, such as those given by the kernel when unusual things happen. </p> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installation depends on:</span></strong> <span class="seg">Binutils, Coreutils, GCC, Glibc, Make, and Patch</span> </div> </div> </div> </div> <div class="installation" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="sect2"> 10.49.1. Installation of Sysklogd </h2> </div> <p> The following patch fixes various issues, including a problem building Sysklogd with Linux 2.6 series kernels </p> <pre class="userinput"><kbd class="command">patch -Np1 -i ../sysklogd-1.4.1-fixes-1.patch</kbd></pre> <p> Compile the package: </p> <pre class="userinput"><kbd class="command">make</kbd></pre> <p> This package does not come with a test suite. </p> <p> Install the package: </p> <pre class="userinput"><kbd class="command">make install</kbd></pre> </div> <div class="configuration" lang="en" xml:lang="en"> <div class="titlepage"> <a id="conf-sysklogd" name="conf-sysklogd"></a> <h2 class="sect2"> 10.49.2. Configuring Sysklogd </h2> </div> <p> Create a new <tt class="filename">/etc/syslog.conf</tt> file by running the following: </p> <pre class="userinput"><kbd class="command">cat > /etc/syslog.conf << "EOF"<tt class="literal"># Begin /etc/syslog.confauth,authpriv.* -/var/log/auth.log*.*;auth,authpriv.none -/var/log/sys.logdaemon.* -/var/log/daemon.logkern.* -/var/log/kern.logmail.* -/var/log/mail.loguser.* -/var/log/user.log*.emerg *# log the bootscript output:local2.* -/var/log/boot.log# End /etc/syslog.conf</tt>EOF</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <div class="titlepage"> <a id="contents-sysklogd" name="contents-sysklogd"></a> <h2 class="sect2"> 10.49.3. Contents of Sysklogd </h2> </div> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installed programs:</span></strong> <span class="seg">klogd and syslogd</span> </div> </div> </div> <div class="variablelist"> <h3> <a id="id3687678" name="id3687678"></a>Short Descriptions </h3> <table border="0"> <col align="left" valign="top" /> <tbody> <tr> <td> <a id="klogd" name="klogd"></a><span class= "term"><span><strong class= "command">klogd</strong></span></span> </td> <td> <p> A system daemon for intercepting and logging kernel messages </p> </td> </tr> <tr> <td> <a id="syslogd" name="syslogd"></a><span class= "term"><span><strong class= "command">syslogd</strong></span></span> </td> <td> <p> Logs the messages that system programs offer for logging. Every logged message contains at least a date stamp and a hostname, and normally the program's name too, but that depends on how trusting the logging daemon is told to be. </p> </td> </tr> </tbody> </table> </div> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="shadow.html" title="Shadow-4.0.15">Prev</a> <p> Shadow-4.0.15 </p> </li> <li class="next"> <a accesskey="n" href="sysvinit.html" title= "Sysvinit-2.86">Next</a> <p> Sysvinit-2.86 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -