﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-sk8boy-文章分类-Linux技术</title><link>http://www.blogjava.net/sk8boy/category/3661.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 16 Jul 2007 03:04:01 GMT</lastBuildDate><pubDate>Mon, 16 Jul 2007 03:04:01 GMT</pubDate><ttl>60</ttl><item><title>（转载）使用xinetd</title><link>http://www.blogjava.net/sk8boy/articles/101698.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Sat, 03 Mar 2007 17:45:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/101698.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/101698.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/101698.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/101698.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/101698.html</trackback:ping><description><![CDATA[<div>
				<h1>
						<h2>原文出处</h2>
						<a href="http://www.dbanotes.net/OpenSource/Using_xinetd.html">http://www.dbanotes.net/OpenSource/Using_xinetd.html</a>
						<br />
				</h1>
				<h1>[OpenSource] 使用xinetd</h1>作者：Jose Nazario <br />译者：Fenng <br />日期：25-Oct-2004 <br />出处：http://www.dbanotes.net<br />版本：@2001/11/27 Version 0.01 @2003/05/23 Version 1.00 <br /></div>
		<hr />
		<p>Jose描述了如何着手配置调整<acronym title="Extended Internet Services Daemon">xinetd</acronym>。 </p>
		<p>
				<acronym title="Extended Internet Services Daemon">xinetd</acronym>取代了inetd，并且提供了访问控制、加强的日志和资源管理功能。<acronym title="Extended Internet Services Daemon">xinetd</acronym>已经成为Red Hat 7 和 Mandrake 7.2的Internet标准超级守护进程。这篇文章将引导你如何应用一些它的特性，这些特性基于<acronym title="Extended Internet Services Daemon">xinetd</acronym> 2.1.8.8 pre3版本。 </p>
		<h2>导言</h2>
		<p>
				<acronym title="Extended Internet Services Daemon">xinetd</acronym>的最初的作者（Panagoitis Tsirigotis panos@cs.colorado.edu）好像已经停止了这个项目。 Rob Braun (bbraun@synack.net)继续了该项目，现在负责维护这个软件包。为了能使 select()在我的老的libc5系统上也可以使用，我不得不给当前的包添加几对头文件，这是我注意到的问题。或许你需要它们，如下： </p>
		<blockquote>
				<pre>xinetd/internals.c.orig
Fri Jun 16 19:00:15 2000
+++ xinetd/internals.c
Fri Jun 16 19:00:53 2000
@@ -12,6 +12,8 @@
 #include &lt;time.h&gt;
 #include &lt;fcntl.h&gt;
 #include &lt;syslog.h&gt;
 #include &lt;unistd.h&gt;
 #include &lt;sys/time.h&gt;
 #include "sio.h"
</pre>
		</blockquote>
		<h2>关于 xinetd</h2>
		<p>
				<acronym title="Extended Internet Services Daemon">xinetd</acronym>用括号括起的、扩展了的语法取代了inetd中的通用的行。另外，还添加了日志和访问控制功能。 虽然inetd可以使用Venema的 tcp_wrappers 软件 (tcpd) 控制 TCP 的连接，但是你不能用它来控制 UDP 连接。此外，inetd对RPC(portmapper)类型的服务也处理不好。另外，虽然使用 inetd 你可以控制连接速度 ( 通过给wait或是no wait 变量附加一个数值，例如nowait.1表示每隔一秒钟一个实例)，你不能控制实例的最大数。这能导致进程表攻击（例如，一个有效的拒绝服务攻击）。通过使用<acronym title="Extended Internet Services Daemon">xinetd</acronym>，我们可以防止<acronym title="Denial Of Service">Dos</acronym>。 </p>
		<p>我通常使用下面的命令启动<acronym title="Extended Internet Services Daemon">xinetd</acronym>，把它放在我的Internet服务启动脚本中： </p>
		<blockquote>
				<pre>/usr/sbin/xinetd -filelog /var/adm/xinetd.log -f /etc/xinetd.conf
</pre>
		</blockquote>
		<p>这告诉 <acronym title="Extended Internet Services Daemon">xinetd</acronym> 对所有的服务都进行纪录，日志保存到文件 /var/adm/xinetd.log中，并且使用配置文件/etc/xinetd.conf。这篇文章中的大量篇幅都将用在这个配置文件上。 </p>
		<h2>编译时选项</h2>
		<p>你应该注意3个编译时的选项：libwrap、loadavg (用于监视负载均衡) 和 IPv6 support，它们提供了额外的访问控制。对于大多数libwrap"明白"的守护进程 (如portmapper 和sendmail)，在配置脚本中的"with-libwrap"选项告诉<acronym title="Extended Internet Services Daemon">xinetd</acronym>支持tcp_wrappers文件/etc/hosts.allow和/etc/hosts.deny。这些选项对<acronym title="Extended Internet Services Daemon">xinetd</acronym>作用就如同它们之于 inetd那样，并且支持所有的 xinetd控制的守护进程。注意如果你从零开始做<acronym title="Extended Internet Services Daemon">xinetd</acronym>的话，就可以做访问控制，不再需要tcpd。不管怎样。对libwrap 的支持是有用的--如果你从inetd/tcpd迁移并且也不想改变你的访问文件的话 。 </p>
		<p>第二个有趣的设置选项是支持负载均衡监控，通过在./configure脚本中使用with-loadavg选项可以达到。sendmail支持在高负载的时候停止连接--假定它已经脱离了控制并且正在当掉机器。用这个选项可以激活max_load 选项以限制任何连接或是基于负载均衡机器的所有服务。</p>
		<p>最后，添加 IPv6支持 可以通过在 ./configure 脚本中使用 with-inet6 capability选项来完成。 这使<acronym title="Extended Internet Services Daemon">xinetd</acronym> 支持IPv6地址和连接。注意要使其生效的话你的核心（和网络）必须支持 IPv6。当然IPv4 仍然被支持。 </p>
		<h2>配置文件</h2>
		<p>
				<acronym title="Extended Internet Services Daemon">xinetd</acronym> 配置文件，通常可以手工或是自动从inetd.conf文件生成。前者费时间且容易出错；后者可以通过 itox软件或者xconv.pl 脚本轻易完成。虽然itox软件正在被取消而倾向于使用 xconv.pl 脚本，它仍是很有用的。但是，要注意重复的运行它会覆盖原有的配置文件。itox和 xconv都以同样的方式工作，我们用 itox来进行演示：</p>
		<blockquote>
				<pre>$ itox &lt; /etc/inetd.conf &gt; xinetd.conf
</pre>
		</blockquote>
		<p>新一些的工具（xconv）可以理解注释，并且在对tcpd的使用上要比itox做得更好，使用itox，你不得不指定守护进程的路径 （如 /usr/sbin）。 你想要包含的第一段就是默认的段，就像名字暗示的那样，默认的<acronym title="Extended Internet Services Daemon">xinetd</acronym>服务。 </p>
		<blockquote>
				<pre>defaults
{
   instances       = 25
   log_type        = FILE /var/adm/servicelog
   log_on_success  = PID HOST EXIT
   flags           = NORETRY
   log_on_failure  = HOST RECORD ATTEMPT
   only_from       = 129.22.0.0
   no_access       = 129.22.210.61 
   disabled        = nntp uucp tftp bootps who
                     shell login exec 
   disabled       += finger
}
</pre>
		</blockquote>
		<p>马上，我们可以了解 <acronym title="Extended Internet Services Daemon">xinetd</acronym> 设置参数的语法：&lt;指示（directive）&gt; &lt;操作符（operator）&gt; &lt;值（value）&gt;。<acronym title="Extended Internet Services Daemon">xinetd</acronym>所能理解的指示列在表一中，在这里我们将忽略 flags、type、env 和passenv指示符。 我对将对 only_from 和 no_access以及额外的日志选项加以更多的讨论 </p>
		<blockquote>
				<table>
						<tbody>
								<tr>
										<td colspan="2">
												<strong>表 1. xinetd的指示符</strong>
										</td>
								</tr>
								<tr>
										<td>指示符 </td>
										<td>描述 </td>
								</tr>
								<tr>
										<td>socket_type </td>
										<td>网络套接字类型, 流或者数据包 </td>
								</tr>
								<tr>
										<td>socket_type </td>
										<td>网络套接字类型, 流或者数据包</td>
								</tr>
								<tr>
										<td>protocol </td>
										<td>IP 协议, 通常是TCP或者 UDP</td>
								</tr>
								<tr>
										<td>wait </td>
										<td>yes/no, 等同于inetd的wait/nowait</td>
								</tr>
								<tr>
										<td>user </td>
										<td>运行进程的用户 ID </td>
								</tr>
								<tr>
										<td>server </td>
										<td>执行的完整路径</td>
								</tr>
								<tr>
										<td>server_args </td>
										<td>传递给server的变量,或者是值</td>
								</tr>
								<tr>
										<td>instances </td>
										<td>可以启动的实例的最大的值</td>
								</tr>
								<tr>
										<td>start max_load</td>
										<td>负载均衡</td>
								</tr>
								<tr>
										<td>log_on_success</td>
										<td>成功启动的登记选项</td>
								</tr>
								<tr>
										<td>log_on_failure</td>
										<td>联机失败的时候的日志信息</td>
								</tr>
								<tr>
										<td>only_from </td>
										<td>接受的网络或是主机</td>
								</tr>
								<tr>
										<td>no_access </td>
										<td>拒绝访问的网络或是主机</td>
								</tr>
								<tr>
										<td>disabled </td>
										<td>用在默认的 {} 中 禁止服务</td>
								</tr>
								<tr>
										<td>log_type </td>
										<td>日志的类型和路径 FILE /SYSLOG</td>
								</tr>
								<tr>
										<td>nice </td>
										<td>运行服务的优先级</td>
								</tr>
								<tr>
										<td>id </td>
										<td>日志中使用的服务名</td>
								</tr>
						</tbody>
				</table>
		</blockquote>
		<p>操作符非常简单，“=”或者“+=”。用 =，右边给定的值传给左边的指示符。+=也是非常直接的，用于给一个已经指定的指示符添加一个值。没有它，原先的指示符就会被覆盖，这样可以用来展开访问列表，或者跨越多行。</p>
		<p>用如下的格式描述服务： </p>
		<p>服务名　 <br />{ <br />指示符 = 值 <br />指示符 += 值 <br />} <br /></p>
		<p>服务名一定要在 /etc/services列出 ，并且要使用合适的socket和协议。 </p>
		<h2>关于访问控制</h2>
		<p>关于访问控制的有几句话。 首先，<acronym title="Extended Internet Services Daemon">xinetd</acronym>控制连接而不是控制数据分组，它只是个用户方的守护进程，如同inetd 一样。同样的，可以打断一个被服务器禁止的主机的SYN或是connect()。但不能中止象FIN [端口扫描使用带有FIN 标志位的TCP包，通常是nmap这样的工具运行产生的]这样的"秘密" 扫描。不要把<acronym title="Extended Internet Services Daemon">xinetd</acronym> 当作一个firewall 用以阻止端口扫描。一个有经验的入侵者能够用这些信息收集你的不同服务的访问控制列表。幸运的是, 这些可以被xinetd纪录。当你看到日志的时候你的疑虑会消除的。 </p>
		<p>第二，<acronym title="Extended Internet Services Daemon">xinetd</acronym>（2.1.8.8pre3版本），当一个系统试图连接的时候进行名字查找。以前，它在启动的时候进行查找， 但是现在已经改变。 </p>
		<p>使用访问控制真的很简单。第一个指示符是 only_from, 列出了我们可以接受从哪一个网络或是主机的连接。这个规则可以被 no_access覆盖。 你可以使用网络号，如 10.0.0.0 或者 10或者是网络名（包括 .my.com 或者 .my.com）。主机名或者主机的 IP地址也可以在这里使用指示符0.0.0.0 匹配所有的主机并监听所有的地址。通过使用 no_access一旦符合标准拒绝就会被解析。再说一遍，网络和主机可以指定。</p>
		<h2>服务配置</h2>
		<p>让我们看一些基本的应用。我们先看第一个基本的服务echo，它是inetd 和<acronym title="Extended Internet Services Daemon">xinetd</acronym>固有的服务。</p>
		<blockquote>
				<pre>service echo
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        type            = INTERNAL
        id              = echo-stream
}
</pre>
		</blockquote>
		<p>echo 以root权限运行, 是一个tcp 流并在内部处理。echo-stream指示符将出现在日志中。如果没有only_from或是 no_access在指示符中,对这个服务的访问的配置将是不受限制的。</p>
		<p>现在，让我们看一个正规的服务，daytime：</p>
		<blockquote>
				<pre>service daytime
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = nobody
        server          = /usr/sbin/in.date
        instances       = 1
        nice            = 10
        only_from       = 0.0.0.0
}
</pre>
		</blockquote>
		<p>再说一次，任何人都可以连接, 不过我们指明它以nobody的身份运行来返回信息。和前一个例子相比，这个并没有额外的什么。现在我们看另一个服务 secure shell version 1。下面的设置可以防止sshd所带来的资源耗尽问题。</p>
		<blockquote>
				<pre>service ssh1
{
        socket_type     = stream
        protocol        = tcp
        instances       = 10
        nice            = 10
        wait            = no
        user            = root
        server          = /usr/local/sbin/sshd1
        server_args     = -i
        log_on_failure  += USERID
        only_from       = 192.168.0.0
        no_access       = 192.168.54.0 
        no_access       += 192.168.33.0
}
</pre>
		</blockquote>
		<p>在这里，我们建立了前面我们所作的。当作为超级用户inetd或者 <acronym title="Extended Internet Services Daemon">xinetd</acronym>重新调用sshd 需要用 -i 参数， 所以我们把它放在了 server_args 指示符后。注意：把这个标记添加到server标识符出会导致失败。在任何时候只有十个人可以同时使用，在这个服务器上这不是问题，这个例子我们从日志得到。另外作为默认信息，如果不能连接的话，连接方的用户 ID在RFC 1413中描述。最后，我们列出了两个网络不能访问这个服务。 </p>
		<h2>日志和 xinetd</h2>
		<p>日志中有几个值可以用于得到你的服务器的信息</p>
		<blockquote>
				<table>
						<tbody>
								<tr>
										<td colspan="3">
												<strong>表2 不同的日志指示值</strong>
										</td>
								</tr>
								<tr>
										<td>值 </td>
										<td>成功/失败 </td>
										<td>描述</td>
								</tr>
								<tr>
										<td>PID </td>
										<td>success </td>
										<td>当一个连接成功时登记产生的进程的pid</td>
								</tr>
								<tr>
										<td>HOST </td>
										<td>both </td>
										<td>登记远程主机地址</td>
								</tr>
								<tr>
										<td>USERID </td>
										<td>both </td>
										<td>登记远程用户的RFC 1413 ID </td>
								</tr>
								<tr>
										<td>EXIT </td>
										<td>success </td>
										<td>登记产生的进程的完成</td>
								</tr>
								<tr>
										<td>DURATION</td>
										<td>success </td>
										<td>登记任务持续的时间</td>
								</tr>
								<tr>
										<td>ATTEMPT </td>
										<td>failure </td>
										<td>登记连接失败的原因</td>
								</tr>
								<tr>
										<td>RECORD </td>
										<td>failure </td>
										<td>关于连接失败的额外的信息</td>
								</tr>
						</tbody>
				</table>
		</blockquote>
		<p>这样，可以添加一些标准的行指明日志，就像下面的样子。对一个成功连接的服务，我们通常想登记服务产生的进程id，连接的主机和退出的时间：</p>
		<blockquote>
				<pre>log_on_success = PID HOST EXIT
</pre>
		</blockquote>
		<p>这样可以给出我们用来排错的有用的信息和正常的服务器操做信息。针对失败，我们可以记录我们想要的：</p>
		<blockquote>
				<pre>log_on_failure = HOST RECORD ATTEMPT
</pre>
		</blockquote>
		<p>我们记录了连接的主机、拒绝连接的原因和关于连接中的主机的额外的信息(有的时候是那些试图连接的用户ID)。推荐你这样做，可以对你的服务器有一个好的把握。</p>
		<p>还看上面，在我们的默认段中，我们的日志写在/var/adm/servicelog中。我们指定所有信息，成功和失败的都要被xinetd记录。我们的大多数信息看起来像这样：</p>
		<blockquote>
				<pre>00/9/13@16:05:07: START: pop3 pid=25679 from=192.168.152.133
00/9/13@16:05:09: EXIT: pop3 status=0 pid=25679
00/10/3@19:28:18: USERID: telnet OTHER :www
</pre>
		</blockquote>
		<p>使用这个信息，可以轻易对 xinetd 排错和进行和正常操作。也可以容易发现安全问题（如你试图阻止的连接企图），在日志中简单的用 grep 作 ''FAIL'' 过滤，这些项显示如下：</p>
		<blockquote>
				<pre>00/10/4@17:04:58: FAIL: telnet address from=216.237.57.154
00/10/8@22:25:09: FAIL: pop2 address from=202.112.14.184
</pre>
		</blockquote>
		<p>真正的安全问题需要另外的文章，但是，这足以说明，既然地址可以伪造，不要把地址报告看作固定的信息。xinetd.log文件（包含了从 xinetd得到的信息）在连接出错的时候作为排错信息很有用。</p>
		<blockquote>
				<pre>00/10/25@21:10:48 xinetd[50]: ERROR: service echo-stream,
accept:
Connection reset by peer
</pre>
		</blockquote>
		<h2>重配置 xinetd</h2>
		<p>在xinetd.conf运行的时候，你可以编辑 xinetd.conf 文件。要重新配置，发送一个信号SIGUSR1 给 xinetd 进程：</p>
		<blockquote>
				<pre># ps -ax | grep xinetd
50 ? S 5:47 /usr/sbin/xinetd -filelog /var/adm/xinetd.log -f /etc/xinetd.conf
# kill -SIGUSR1 50
</pre>
		</blockquote>
		<p>察看日志文件的尾部（用tail命令）确保你的配置和改动已经生效。如果你是个远程用户的话要确保你退出后还可以重新登陆进来。注意使用-HUP对xinetd重新配置，会实际导致 <acronym title="Extended Internet Services Daemon">xinetd</acronym> 停止操作。从设计的角度看，这可以阻止黑客重新配置你的<acronym title="Extended Internet Services Daemon">xinetd</acronym>并且在无需理解文档的情况下就可以重新载入它。</p>
		<h2>何时使用xinetd</h2>
		<p>以我个人而言，对所有的服务我都使<acronym title="Extended Internet Services Daemon">xinetd</acronym>；唯一一个对性能有影响的服务是我的Apache web 守护进程。太多的进程不得不启动，对它来说这太快了从而时间效率是个问题。DNS 服务也不应该用 xinetd，性能消耗太大。</p>
		<p>对sendmail 服务我也使用了<acronym title="Extended Internet Services Daemon">xinetd</acronym>。这样对于允许连接的客户，我能够进行完美的控制。针对 sendmail我的设置如下： </p>
		<blockquote>
				<pre>service smtp
{
        socket_type   = stream
        protocol      = tcp
        wait          = no
        user          = root
        server        = /usr/sbin/sendmail
        server_args   = -bs
        instances     = 20
        nice          = 10
        only_from     += 0.0.0.0
        no_access     += 129.22.122.84 204.0.224.254
}
</pre>
		</blockquote>
		<p>即使是在一个高流量的邮件服务器上，对性能的影响也是可以忽略不计的。我还把 sshd 载入到 xinetd 以便阻止对它的进程表攻击。 </p>
		<h2>结论</h2>
		<p>希望这篇文章对你配置或是根据需要调整inetd能有帮助。正如你所看到的，它提供的特性要比inetd大得多，甚至包含了tcp_wrappers。Solar Designer (<a href="http://www.openwall.com/">http://www.openwall.com/</a>) 提供一个针对稍旧一点的<acronym title="Extended Internet Services Daemon">xinetd</acronym>的版本的（2.2.1版本）的补丁，允许基于IP的实例控制，这有助于阻止简单的进程表攻击。注意，不管怎样，简单的伪造可以绕过它。我不知道是否这个包对以后的 <acronym title="Extended Internet Services Daemon">xinetd</acronym>是否也适用。 </p>
		<p>附：xinetd 代表 Extended Internet Services Daemon 下面附上一个xinetd.conf手册页上的参考设置： </p>
		<blockquote>
				<pre>	#
	# Sample configuration file for xinetd
	#

	defaults
	{
	     log_type		 = FILE /var/log/servicelog
	     log_on_success	 = PID
	     log_on_failure	 = HOST RECORD
	     only_from		 = 128.138.193.0 128.138.204.0
	     only_from		 = 128.138.252.1
	     instances		 = 10
	     disabled		 = rstatd
    }

	#
    # Note 1: the protocol attribute is not required
    # Note 2: the instances attribute overrides the default
    #
     
	service login
    {
	    socket_type	 = stream
	    protocol		 = tcp
	    wait		 = no
	    user		 = root
	    server		 = /usr/etc/in.rlogind
	    instances		 = UNLIMITED
    }

    #
    # Note 1: the instances attribute overrides the default
    # Note 2: the log_on_success flags are augmented
    #

    service shell
    {
	     socket_type	 = stream
	     wait		 = no
	     user		 = root
	     instances		 = UNLIMITED
	     server		 = /usr/etc/in.rshd
	     log_on_success	 += HOST RECORD
    }

    service ftp
    {
	     socket_type	 = stream
	     wait		 = no
	     nice		 = 10
	     user		 = root
	     server		 = /usr/etc/in.ftpd
	     server_args	 = -l
	     instances		 = 4
	     log_on_success	 += DURATION HOST USERID
	     access_times	 = 2:00-9:00 12:00-24:00
    }

    # Limit telnet sessions to 8 Mbytes of memory and a total
    # 20 CPU seconds for child processes.

    service telnet
    {
	     socket_type	 = stream
	     wait		 = no
	     nice		 = 10
	     user		 = root
	     server		 = /usr/etc/in.telnetd
	     rlimit_as		 = 8M
	     rlimit_cpu		 = 20
    }

    #
    # This entry and the next one specify internal services. Since
    # this is the same service using a different socket type, the
    # id attribute is used to uniquely identify each entry
    #
    
	service echo
    {
	     id			 = echo-stream
	     type		 = INTERNAL
	     socket_type	 = stream
	     user		 = root
	     wait		 = no
    }
    
    service echo
    {
	     id			 = echo-dgram
	     type		 = INTERNAL
	     socket_type	 = dgram
	     user		 = root
	     wait		 = no
    }

    service servers
	{
	     type		 = INTERNAL UNLISTED
	     protocol		 = tcp
	     port		 = 9099
	     socket_type	 = stream
	     wait		 = no
    }

    #
    # Sample RPC service
    #
    service rstatd
    {
	     type		 = RPC
	     socket_type	 = dgram
	     protocol		 = udp
	     server		 = /usr/etc/rpc.rstatd
	     wait		 = yes
	     user		 = root
	     rpc_version	 = 2-4
	     env		 = LD_LIBRARY_PATH=/etc/securelib
    }

    #
    # Sample unlisted service
    #
    
	service unlisted
    {
	     type		 = UNLISTED
	     socket_type	 = stream
	     protocol		 = tcp
	     wait		 = no
	     server		 = /home/user/some_server
	     port		 = 20020
    }
</pre>
		</blockquote>
		<p>翻译后记：一日在网上看到自己在2年前的这个翻译文档，细读一下，发现谬误不少，遂找到原文，更正了一些不当之处。翻译不当之处肯定还是存在的，欢迎指出!</p>
		<br />
		<h2>参考信息(译者提供)</h2>
		<br />
		<p>
				<a href="http://www.xinetd.org/">xinetd</a> - http://www.xinetd.org/ </p>
		<p>
				<a href="http://www.linuxfocus.org/English/November2000/article175.shtml">Frederic Raynal的文章</a> - http://www.linuxfocus.org/English/November2000/article175.shtml</p>
		<p>
				<a href="http://www.dbanotes/net/Books/xinted.pdf">xinetd HOWTO </a>- http://www.dbanotes/net/Books/xinted.pdf </p>
		<br />
		<hr />
		<script language="JavaScript">
				<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
		</script>
		<script type="text/javascript">
				<!--
	google_ad_client = "pub-2198040673582211";
	google_ad_width = 468;
	google_ad_height = 60;
	google_ad_format = "468x60_as";
	google_ad_channel ="0605826110";
	google_ad_type = "text";
	google_color_border = "336699";
	google_color_bg = "FFFFFF";
	google_color_link = "0000FF";
	google_color_url = "008000";
	google_color_text = "000000";
	//-->
		</script>
		<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
		</script>
		<iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-2198040673582211&amp;dt=1172942971796&amp;lmt=1129588322&amp;format=468x60_as&amp;output=html&amp;channel=0605826110&amp;url=http%3A%2F%2Fwww.dbanotes.net%2FOpenSource%2FUsing_xinetd.html&amp;color_bg=FFFFFF&amp;color_text=000000&amp;color_link=0000FF&amp;color_url=008000&amp;color_border=336699&amp;ad_type=text&amp;cc=100&amp;u_h=768&amp;u_w=1024&amp;u_ah=738&amp;u_aw=1024&amp;u_cd=32&amp;u_tz=480&amp;u_java=true" frameborder="0" width="468" scrolling="no" height="60" allowtransparency="">
		</iframe>
		<hr />
		<h2>本文译者</h2>Fenng，某美资公司DBA，业余时间混迹于各数据库相关的技术论坛且乐此不疲。目前关注如何利用ORACLE数据库有效地构建企业应用。对Oracle tuning、troubleshooting有一点研究。<br />个人技术站点:<a href="http://www.dbanotes.net/">http://www.dbanotes.net/</a> 。可以通过电子邮件 dbanotes@gmail.com 联系到他。 
<hr /><img src ="http://www.blogjava.net/sk8boy/aggbug/101698.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2007-03-04 01:45 <a href="http://www.blogjava.net/sk8boy/articles/101698.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用Bind 9配置DNS服务</title><link>http://www.blogjava.net/sk8boy/articles/90580.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Thu, 28 Dec 2006 12:05:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/90580.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/90580.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/90580.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/90580.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/90580.html</trackback:ping><description><![CDATA[最近两天需要配置DNS服务，所以在网上看了一些资料。可是按照上面写的去做，没有一个能成功的。最后，在FC6中的rpm包中找到了一个sample，里面有配置的文件。经过简单更改，正确了。<br />所以贴出来，以备下次需要。<br />/etc/resolv.conf<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">domain mci.uestc.edu.cn<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />nameserver </span><span style="COLOR: #000000">127.0</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">0.1</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />nameserver </span><span style="COLOR: #000000">202.112</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">14.151</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />nameserver </span><span style="COLOR: #000000">202.112</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">14.161</span></div>/etc/named.conf<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">options<br />{<br />        query</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">source    port </span><span style="COLOR: #000000">53</span><span style="COLOR: #000000">;<br />        query</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">source</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">v6 port </span><span style="COLOR: #000000">53</span><span style="COLOR: #000000">;<br /><br />        </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Put files that named is allowed to write in the data/ directory:</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000">        directory </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">/var/named</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">; </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> the default</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000">        dump</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">file               </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">data/cache_dump.db</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br />        statistics</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">file         </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">data/named_stats.txt</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br /><br />};<br /><br />logging <br />{<br />        channel default_debug {<br />                file </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">data/named.run</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br />                severity dynamic;<br />        };<br />};<br /><br />zone </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> IN {<br />        type hint;<br />        file </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">named.root</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br />};<br /><br />zone </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">localdomain</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> IN {<br />        type master;<br />        file </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">localdomain.zone</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br />        allow</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">update { none; };<br />};<br /><br />zone </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">localhost</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> IN {<br />        type master;<br />        file </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">localhost.zone</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br />        allow</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">update { none; };<br />};<br /><br />zone </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">0.0.127.in-addr.arpa</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> IN {<br />        type master;<br />        file </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">named.local</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br />        allow</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">update { none; };<br />};<br /><br />zone </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">mci.uestc.edu.cn</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> IN { <br />        type master;<br />        file </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">mci.uestc.edu.cn.zone</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br />};<br /><br />zone </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">1.168.192.in-addr.arpa</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> IN {<br />        type master;<br />        file </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">named.192.168.1</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;<br />        allow</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">update { none; };<br />};<br /><br />include </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">/etc/rndc.key</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">;</span></div><br />/var/named/named.root<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">;       This file holds the information on root name servers needed to<br />;       initialize cache of Internet domain name servers<br />;       (e.g. reference </span><span style="COLOR: #0000ff">this</span><span style="COLOR: #000000"> file in the </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">cache  .  &lt;file&gt;</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"><br />;       configuration file of BIND domain name servers).<br />;<br />;       This file is made available by InterNIC <br />;       under anonymous FTP as<br />;           file                </span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">domain</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">named.cache<br />;           on server           FTP.INTERNIC.NET<br />;       </span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">OR</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">                    RS.INTERNIC.NET<br />;<br />;       last update:    Jan </span><span style="COLOR: #000000">29</span><span style="COLOR: #000000">, </span><span style="COLOR: #000000">2004</span><span style="COLOR: #000000"><br />;       related version of root zone:   </span><span style="COLOR: #000000">2004012900</span><span style="COLOR: #000000"><br />;<br />;<br />; formerly NS.INTERNIC.NET<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">  IN  NS    A.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />A.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">198.41</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">0.4</span><span style="COLOR: #000000"><br />;<br />; formerly NS1.ISI.EDU<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    B.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />B.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">192.228</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">79.201</span><span style="COLOR: #000000"><br />;<br />; formerly C.PSI.NET<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    C.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />C.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">192.33</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">4.12</span><span style="COLOR: #000000"><br />;<br />; formerly TERP.UMD.EDU<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    D.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />D.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">128.8</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">10.90</span><span style="COLOR: #000000"><br />;<br />; formerly NS.NASA.GOV<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    E.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />E.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">192.203</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">230.10</span><span style="COLOR: #000000"><br />;<br />; formerly NS.ISC.ORG<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    F.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />F.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">192.5</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">5.241</span><span style="COLOR: #000000"><br />;<br />; formerly NS.NIC.DDN.MIL<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    G.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />G.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">192.112</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">36.4</span><span style="COLOR: #000000"><br />;<br />; formerly AOS.ARL.ARMY.MIL<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    H.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />H.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">128.63</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">2.53</span><span style="COLOR: #000000"><br />;<br />; formerly NIC.NORDU.NET<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    I.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />I.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">192.36</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">148.17</span><span style="COLOR: #000000"><br />;<br />; operated by VeriSign, Inc.<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    J.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />J.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">192.58</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">128.30</span><span style="COLOR: #000000"><br />;<br />; operated by RIPE NCC<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    K.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />K.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">193.0</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">14.129</span><span style="COLOR: #000000"> <br />;<br />; operated by ICANN<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    L.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />L.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">198.32</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">64.12</span><span style="COLOR: #000000"><br />;<br />; operated by WIDE<br />;<br />.                        </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      NS    M.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.<br />M.ROOT</span><span style="COLOR: #000000">-</span><span style="COLOR: #000000">SERVERS.NET.      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">      A     </span><span style="COLOR: #000000">202.12</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">27.33</span><span style="COLOR: #000000"><br />; End of File</span></div><br />/var/named/localdomain.zone<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">$TTL    </span><span style="COLOR: #000000">86400</span><span style="COLOR: #000000"><br />@               IN SOA  localhost root (<br />                                        </span><span style="COLOR: #000000">42</span><span style="COLOR: #000000">              ; serial (d. adams)<br />                                        3H              ; refresh<br />                                        15M             ; retry<br />                                        1W              ; expiry<br />                                        1D )            ; minimum<br />                IN NS           localhost<br />localhost       IN A            </span><span style="COLOR: #000000">127.0</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">0.1</span></div><br />/var/named/localhost.zone<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">$TTL    </span><span style="COLOR: #000000">86400</span><span style="COLOR: #000000"><br />@               IN SOA  @       root (<br />                                        </span><span style="COLOR: #000000">42</span><span style="COLOR: #000000">              ; serial (d. adams)<br />                                        3H              ; refresh<br />                                        15M             ; retry<br />                                        1W              ; expiry<br />                                        1D )            ; minimum<br /><br />                IN NS           @<br />                IN A            </span><span style="COLOR: #000000">127.0</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">0.1</span><span style="COLOR: #000000"><br />                IN AAAA         ::</span><span style="COLOR: #000000">1</span></div><br />/var/named/named.local<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">$TTL    </span><span style="COLOR: #000000">86400</span><span style="COLOR: #000000"><br />@       IN      SOA     localhost. root.localhost.  (<br />                                      </span><span style="COLOR: #000000">1997022700</span><span style="COLOR: #000000"> ; Serial<br />                                      </span><span style="COLOR: #000000">28800</span><span style="COLOR: #000000">      ; Refresh<br />                                      </span><span style="COLOR: #000000">14400</span><span style="COLOR: #000000">      ; Retry<br />                                      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">    ; Expire<br />                                      </span><span style="COLOR: #000000">86400</span><span style="COLOR: #000000"> )    ; Minimum<br />        IN      NS      localhost.<br /></span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">       IN      PTR     localhost.</span></div><br />/var/named/mci.uestc.edu.cn.zone<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">$TTL    </span><span style="COLOR: #000000">86400</span><span style="COLOR: #000000"><br />@               IN SOA  @       root (<br />                                        </span><span style="COLOR: #000000">42</span><span style="COLOR: #000000">              ; serial (d. adams)<br />                                        3H              ; refresh<br />                                        15M             ; retry<br />                                        1W              ; expiry<br />                                        1D )            ; minimum<br /><br />                IN NS           @<br />                IN A            </span><span style="COLOR: #000000">192.168</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">1.129</span><span style="COLOR: #000000"><br />wtj             IN A            </span><span style="COLOR: #000000">192.168</span><span style="COLOR: #000000">.</span><span style="COLOR: #000000">1.147</span></div><br />/var/named/named.192.168.1<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">$TTL    </span><span style="COLOR: #000000">86400</span><span style="COLOR: #000000"><br />@       IN      SOA     mci.uestc.edu.cn. root.mci.uestc.edu.cn.  (<br />                                      </span><span style="COLOR: #000000">1997022700</span><span style="COLOR: #000000"> ; Serial<br />                                      </span><span style="COLOR: #000000">28800</span><span style="COLOR: #000000">      ; Refresh<br />                                      </span><span style="COLOR: #000000">14400</span><span style="COLOR: #000000">      ; Retry<br />                                      </span><span style="COLOR: #000000">3600000</span><span style="COLOR: #000000">    ; Expire<br />                                      </span><span style="COLOR: #000000">86400</span><span style="COLOR: #000000"> )    ; Minimum<br />        IN      NS      mci.uestc.edu.cn.<br /></span><span style="COLOR: #000000">129</span><span style="COLOR: #000000">     IN      PTR     mci.uestc.edu.cn.<br /></span><span style="COLOR: #000000">147</span><span style="COLOR: #000000">     IN      PTR     wtj.mci.uestc.edu.cn.</span></div><p><br />配置完成后重启DNS服务，<br /><strong>service named restart</strong><br />接下来，测试配置结果<br /><strong>nslookup localhost<br /></strong>Server:         127.0.0.1<br />Address:        127.0.0.1#53</p><p>Name:   localhost<br />Address: 127.0.0.1<br /><br /><strong>nslookup mci.uestc.edu.cn</strong><br />Server:         127.0.0.1<br />Address:        127.0.0.1#53</p><p>Name:   mci.uestc.edu.cn<br />Address: 192.168.1.129<br /><br /><strong>nslookup wtj.mci.uestc.edu.cn</strong><br />Server:         127.0.0.1<br />Address:        127.0.0.1#53</p><p>Name:   wtj.mci.uestc.edu.cn<br />Address: 192.168.1.147<br /></p><img src ="http://www.blogjava.net/sk8boy/aggbug/90580.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2006-12-28 20:05 <a href="http://www.blogjava.net/sk8boy/articles/90580.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux Glossary</title><link>http://www.blogjava.net/sk8boy/articles/49603.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Thu, 01 Jun 2006 06:54:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/49603.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/49603.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/49603.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/49603.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/49603.html</trackback:ping><description><![CDATA[<dt>
				<a name="gl-jb-a11y">
				</a>a11y 
</dt>
		<dd>
				<p>An abbreviation for "accessibility," frequently used in programming to avoid unnecessary typing and misspelling. Accessibility is the provision of services for impaired users, such as text-to-speech translation for the visually impaired. The <code class="literal">11</code> derives from the eleven letters between the beginning <code class="literal">a</code> and the ending <code class="literal">y</code>. </p>
		</dd>
		<dt>
				<a name="gl-jb-alsa">
				</a>ALSA 
</dt>
		<dd>
				<p>The Advanced Linux Sound Architecture (ALSA) is a technology that gives Fedora the ability to mix and output multiple audio sources. ALSA supports many consumer and professional level hardware devices. Refer to <a href="http://www.alsa-project.org/" target="_top">http://www.alsa-project.org/</a> for more information. </p>
		</dd>
		<dt>
				<a name="gl-jb-anaconda">
				</a>Anaconda 
</dt>
		<dd>
				<p>
						<span>
								<strong class="application">Anaconda</strong>
						</span> is the Fedora Core installation system. <span><strong class="application">Anaconda</strong></span> identifies and configures the system's hardware, creates appropriate file systems, and installs or upgrades software packages. <span><strong class="application">Anaconda</strong></span> runs in a fully interactive text or graphical mode, or in an automated <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-kickstart">kickstart</a> mode. Refer to <a href="http://fedoraproject.org/wiki/Anaconda" target="_top">http://fedoraproject.org/wiki/Anaconda</a> for more information. </p>
		</dd>
		<dt>
				<a name="gl-jb-apt">
				</a>apt 
</dt>
		<dd>
				<p>The <code class="command">apt</code> (Advanced Package Tool) utility is a dependency tool developed for use with Debian Linux <em class="firstterm">dpkg</em> packages. The <code class="command">apt-rpm</code> utility extends <code class="command">apt</code> for use with RPM packages. Since <code class="command">apt</code> has specific problems with <em class="firstterm">multilib</em>, however, it is not recommended for use with Fedora systems. Use <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-yum">yum</a> instead. </p>
		</dd>
		<dt>
				<a name="gl-jb-atrpms">
				</a>ATrpms 
</dt>
		<dd>
				<p>ATrpms a third party RPM repository for Fedora software. Refer to <a href="http://atrpms.physik.fu-berlin.de/" target="_top">http://atrpms.physik.fu-berlin.de/</a> for more information about ATrpms. </p>
		</dd>
		<dt>
				<a name="gl-jb-bittorrent">
				</a>BitTorrent 
</dt>
		<dd>
				<p>
						<span>
								<strong class="application">BitTorrent</strong>
						</span> is a peer-to-peer file sharing which downloads from multiple channels at once. Refer to <a href="http://bitconjurer.org/BitTorrent/" target="_top">http://bitconjurer.org/BitTorrent/</a> for more information. </p>
				<p>Use <span><strong class="application">BitTorrent</strong></span> to download Fedora Core by downloading and opening a torrent file. The official Fedora Core torrent tracker is located at <a href="http://torrent.fedoraproject.org/" target="_top">http://torrent.fedoraproject.org/</a>. Download a torrent file there to begin downloading a release of Fedora Core. </p>
		</dd>
		<dt>
				<a name="gl-jb-bluecurve">
				</a>Bluecurve 
</dt>
		<dd>
				<p>
						<span class="trademark">Bluecurve</span>™ is a theme which unifies the look and feel of the Fedora desktop. Bluecurve was introduced in Red Hat Linux 9 and was used as the default for Fedora Core through release 3. Bluecurve was replaced in Fedora Core 4 by <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-clearlooks">Clearlooks</a>. Bluecurve included icons and settings for the menu and layout of the desktop. </p>
		</dd>
		<dt>
				<a name="gl-jb-bugzilla">
				</a>Bugzilla 
</dt>
		<dd>
				<p>Bugzilla is an online database for recording flaws, or <em class="firstterm">bugs</em>, in Fedora software, documentation, and other projects. Bugzilla also tracks bugs in Red Hat software. When you encounter a problem with Fedora, you can help the community fix the problem by making a record in Bugzilla. This procedure is called "entering a bug." For more information about Bugzilla, refer to <a href="http://bugzilla.redhat.com/" target="_top">http://bugzilla.redhat.com</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-cjk">
				</a>CJK 
</dt>
		<dd>
				<p>An abbreviation for "Chinese, Japanese and Korean," East Asian languages which require the use of an <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-input-method">Input method</a> platform due to the large number of possible typographic characters. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-iiimf">IIIMF</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-clearlooks">
				</a>Clearlooks 
</dt>
		<dd>
				<p>Clearlooks is the default theme for a GNOME desktop environment in Fedora Core 4. The Clearlooks design is based on the original <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-bluecurve">Bluecurve</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-core">
				</a>Core 
</dt>
		<dd>
				<p>Core is a numbered release of a subset of Fedora software, and is usually called "Fedora Core." Core packages are maintained mainly by employees of Red Hat, and are made up of free and open source software produced by the Linux community. </p>
				<p>Although the software in Fedora Core is updated regularly, the original release of Fedora Core does not change. For this reason, when users discuss the state of their Fedora system software, they might refer to "Fedora Core plus updates." When you request help from the community, this terminology is the most accurate. However, many users simply call the updated system "Fedora Core." </p>
		</dd>
		<dt>
				<a name="gl-jb-cpu">
				</a>CPU 
</dt>
		<dd>
				<p>The Central Processing Unit, or <span class="acronym">CPU</span> , is the "brain" of a computer. The rest of the computer is organized around the CPU, so people often refer to computer systems by the type of processor inside. Examples of CPUs include Pentium-4, Athlon64, and PowerPC. </p>
		</dd>
		<dt>cron 
</dt>
		<dd>
				<p>The <code class="command">cron</code> system executes automatic jobs on behalf of the system or an individual user on a schedule. An example of a system <code class="command">cron</code> job might include running <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-yum">yum</a> nightly to update the system. </p>
		</dd>
		<dt>CUPS 
</dt>
		<dd>
				<p>The Common UNIX Printing System, or <span class="acronym">CUPS</span> , is a cross-platform, modularized printing system for UNIX-type environments, including Linux and Macintosh OS X. It is based on the Internet Printing Protocol and provides facilities for managing print jobs and queues. CUPS drivers are available at <a href="http://www.cups.org/windows/" target="_top">http://www.cups.org/windows/</a> which allow Windows systems to use printers shared from Linux systems. Refer to <a href="http://www.cups.org/" target="_top">http://www.cups.org/</a> for more information about CUPS. </p>
		</dd>
		<dt>Desktop Switcher 
</dt>
		<dd>
				<p>The <span><strong class="application">Desktop Switcher</strong></span> tool allows a user to convert the Fedora desktop between <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-gnome">GNOME</a> and <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-kde">KDE</a>. To run the <span><strong class="application">Desktop Switcher</strong></span> tool from the Main Menu, select <span><strong class="guimenu">Desktop</strong></span> → <span><strong class="guisubmenu">Preferences</strong></span> → <span><strong class="guisubmenu">More Preferences</strong></span> → <span><strong class="guimenuitem">Desktop Switcher</strong></span>. If you do not see this item in your menu, you may not have the <code class="filename">switchdesk-gui</code> package installed. Refer to <a href="http://fedora.redhat.com/docs/" target="_top">http://fedora.redhat.com/docs/</a> to learn how to use <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-yum">yum</a> to install software packages. </p>
		</dd>
		<dt>
				<a name="gl-jb-eth0">
				</a>eth0 
</dt>
		<dd>
				<p>The <code class="systemitem">eth0</code> name represents the first discovered <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-ethernet">Ethernet</a> interface in a Fedora system. If your Fedora system has more than one such interface, the others will be numbered <code class="systemitem">eth1</code>, <code class="systemitem">eth2</code>, and so on. </p>
		</dd>
		<dt>
				<a name="gl-jb-ethernet">
				</a>Ethernet 
</dt>
		<dd>
				<p>Ethernet is the most common type of network technology for small computer networks. </p>
		</dd>
		<dt>
				<a name="gl-jb-ethtool">
				</a>ethtool 
</dt>
		<dd>
				<p>The <code class="command">ethtool</code> utility is a Linux network driver diagnostic and tuning tool for a Linux 2.4 or later <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-kernel">kernel</a>. The <code class="command">ethtool</code> utility is used for querying and changing settings of an <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-ethernet">Ethernet</a> device. </p>
		</dd>
		<dt>
				<a name="gl-jb-ext3">
				</a>ext3 
</dt>
		<dd>
				<p>The <code class="systemitem">ext3</code> file system is a method of organizing data on storage devices. It is based on the older but still vital <code class="systemitem">ext2</code> Linux file system. Most users do not need to understand file system internals because Linux translates this system into understandable concepts such as files and folders. Refer to <a href="http://e2fsprogs.sourceforge.net/" target="_top">http://e2fsprogs.sourceforge.net/</a>, however, for more information on <code class="systemitem">ext2</code> and <code class="systemitem">ext3</code>. </p>
		</dd>
		<dt>
				<a name="gl-jb-faq">
				</a>FAQ 
</dt>
		<dd>
				<p>A <span class="acronym">FAQ</span> is a list of Frequently Asked Questions. Refer to <a href="http://fedora.redhat.com/about/faq/" target="_top">http://fedora.redhat.com/about/faq/</a> for a FAQ about the Fedora Project. Refer to <a href="http://fedorafaq.org/" target="_top">http://fedorafaq.org/</a> for a FAQ about using Fedora. </p>
		</dd>
		<dt>
				<a name="gl-jb-fdl">
				</a>FDL 
</dt>
		<dd>
				<p>The GNU Free Documentation License, or <span class="acronym">FDL</span>, is a means of licensing program documentation. The FDL carries both rights and responsibilities. You have the right to modify and redistribute FDL materials, or create other works based on them. You then have the responsibility of licensing any such material under the FDL as well. In this fashion the FDL guarantees that documentation cannot be made less free by a recipient. </p>
		</dd>
		<dt>
				<a name="gl-jb-fhs">
				</a>FHS 
</dt>
		<dd>
				<p>The File Hierarchy Standard, or <span class="acronym">FHS</span> , is a specification for the naming and organization of directories on a Linux system. The FHS sets standards for the types of files that should inhabit specific system directories. Refer to <a href="http://www.pathname.com/fhs/" target="_top">http://www.pathname.com/fhs/</a> for more information about the FHS. </p>
		</dd>
		<dt>
				<a name="gl-jb-freshrpms">
				</a>FreshRPMS 
</dt>
		<dd>
				<p>A third-party repository of <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-rpm">RPM</a> software packages. FreshRPMS is soon to be subsumed into the larger RPMForge repository. Refer to <a href="http://www.freshrpms.net/" target="_top">http://www.freshrpms.net/</a> for more information. </p>
		</dd>
		<dt>
				<a name="gl-jb-fsck">
				</a>fsck 
</dt>
		<dd>
				<p>The <code class="command">fsck</code> utility is a command line tool used to test file systems for consistency and repair errors. It is normally used with Linux file systems such as <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-ext3">ext3</a>, but also has the ability to make repairs on other types of file systems. </p>
		</dd>
		<dt>
				<a name="gl-jb-gimp">
				</a>GIMP 
</dt>
		<dd>
				<p>The GIMP is the GNU Image Manipulation Program. The GIMP is graphics software suitable for such tasks as photo retouching, image composition and image authoring. The GIMP will read and write graphics files in a variety of formats, including JPG, PNG, BMP, GIF. It will also import some proprietary image formats from other graphics programs. Refer to <a href="http://www.gimp.org/" target="_top">http://www.gimp.org/</a> for more information about the GIMP. </p>
		</dd>
		<dt>
				<a name="gl-jb-glibc">
				</a>glibc 
</dt>
		<dd>
				<p>The GNU C library, or <code class="systemitem">glibc</code>, is a free and open source library of C functions. Most software programs for your Fedora system rely on <code class="systemitem">glibc</code> for basic common functions. Refer to <a href="http://www.gnu.org/software/libc/libc.html" target="_top">http://www.gnu.org/software/libc/libc.html</a> for more information about <code class="systemitem">glibc</code>. </p>
		</dd>
		<dt>
				<a name="gl-jb-gnome">
				</a>GNOME 
</dt>
		<dd>
				<p>
						<span class="acronym">GNOME</span> is the short name for the GNOME Desktop, a product of the GNOME Project. GNOME is at once a free desktop environment for UNIX-like operating systems such as Fedora, and a framework for software developers to develop graphical utilities and interfaces. GNOME provides a complete set of human interface guidelines, which means that GNOME strives to have a consistent look and feel for all its applications. Read more about GNOME at <a href="http://www.gnome.org/" target="_top">http://www.gnome.org/</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-gnu">
				</a>GNU 
</dt>
		<dd>
				<p>
						<span class="acronym">GNU</span> is an acronym that stands for "GNU's Not UNIX," and is pronounced "guh-NOO." GNU was originally intended to be a complete UNIX-like operating system. It has become a broader term describing free software licensed under the <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-gpl">GPL</a>. Because the <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-kernel">kernel</a> and much of the other software in a Linux system are licensed under the <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-gpl">GPL</a>, many people call that system GNU/Linux. </p>
		</dd>
		<dt>
				<a name="gl-jb-gnupg">
				</a>GnuPG (GPG) 
</dt>
		<dd>
				<p>GnuPG, the GNU Privacy Guard, is a complete and free replacement for PGP, Pretty Good Privacy. GnuPG software allows you to digitally sign or encrypt data using public key encryption methods. GnuPG is OpenPGP compliant, so data signed or encrypted by GnuPG can be exchanged with almost any computer user. Refer to <a href="http://www.gnupg.org/" target="_top">http://www.gnupg.org/</a> for more information about GPG. </p>
		</dd>
		<dt>
				<a name="gl-jb-gpl">
				</a>GPL 
</dt>
		<dd>
				<p>The GNU General Public Licence, or <span class="acronym">GPL</span> , is a software license designed to preserve users' rights to share and modify software. The GPL does this by restricting anyone from denying you those rights. Use of software is usually subject to the terms under which it is licensed. Many software licenses restrict you from copying, sharing, or even examining the software they cover. The terms of the GPL, however, allow you very broad rights to share, modify, and redistribute software. In return the GPL requires you to give others those rights if you share the results. The GPL encourages software programmers to learn and contribute to each other's work. Refer to <a href="http://www.fsf.org/licenses/licenses/gpl.html" target="_top">http://www.fsf.org/licenses/licenses/gpl.html</a> for more information about the GPL. For a <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-faq">FAQ</a> about the GPL, refer to <a href="http://www.fsf.org/licensing/licenses/gpl-faq.html" target="_top">http://www.fsf.org/licensing/licenses/gpl-faq.html</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-grub">
				</a>GRUB 
</dt>
		<dd>
				<p>The <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-gnu">GNU</a> GRand Unified Boot Loader, or <span class="acronym">GRUB</span> , is a program which controls the boot process after basic system tests occur. It presents a menu that allows the user to select an operating system or kernel to boot. Its features include passing parameters and options to the kernel, and a minimal functional shell. Refer to <a href="http://www.gnu.org/software/grub/" target="_top">http://www.gnu.org/software/grub/</a> for more information about GRUB. </p>
		</dd>
		<dt>
				<a name="gl-jb-i18n">
				</a>i18n 
</dt>
		<dd>
				<p>An abbreviation for "internationalization," frequently used in programming to avoid unnecessary typing and misspellings. Internationalization is the provision of multiple translations for messages that applications produce. The <code class="literal">18</code> derives from the eighteen (18) letters between the beginning <code class="literal">i</code> and the ending <code class="literal">n</code>. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-l10n">l10n</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-i386">
				</a>i386 
</dt>
		<dd>
				<p>The entire set of computer processors that are compatible with the Intel x86 platform, including Intel Pentium and Celeron, AMD Athlon and Duron, and VIA C3 <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-cpu">CPU</a>s, are commonly referred to as <code class="systemitem">i386</code>. The <code class="systemitem">i386</code> term is often used to refer a set of software packages that run on these processors. </p>
		</dd>
		<dt>
				<a name="gl-jb-iiimf">
				</a>IIIMF 
</dt>
		<dd>
				<p>The Intranet/Internet Input Method Framework, or <span class="acronym">IIIMF</span> , is an <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-input-method">Input method</a> framework for handling languages such as <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-cjk">CJK</a>, which will not map readily to a standard keyboard device. IIIMF works by loading language engines dynamically at runtime as they are requested by clients. </p>
		</dd>
		<dt>
				<a name="gl-jb-im">
				</a>IM 
</dt>
		<dd>
				<p>Instant messaging, or <span class="acronym">IM</span> , is a real-time, text-based form of communication. You can use IM to have conversations with individuals or groups. America Online, an Internet service provider, popularized IM in the 1990's, but many other providers such as Yahoo and Google offer similar services. Fedora has programs such as <span><strong class="application">gaim</strong></span> that allow you to use IM to communicate with other Internet users. </p>
		</dd>
		<dt>
				<a name="gl-jb-inkscape">
				</a>Inkscape 
</dt>
		<dd>
				<p>Inkscape is a vector graphics illustration program. It uses SVG as the default file format. For more information about Inkscape, refer to <a href="http://www.inkscape.org/" target="_top">http://www.inkscape.org/</a>. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-sodipodi">Sodipodi</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-input-method">
				</a>Input method 
</dt>
		<dd>
				<p>A method used to enter text other than selecting each character directly on a keyboard or other input hardware. Input methods are widely used for entering ideographs and other characters phonetically or by component, such as in Esat Asian languages. Fedora Core uses the <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-iiimf">IIIMF</a> platform by default, but also offers other platforms such as <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-scim">SCIM</a>. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-cjk">CJK</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-irc">
				</a>IRC 
</dt>
		<dd>
				<p>Internet Relay Chat, or <span class="acronym">IRC</span> , is a communication protocol that allows users to type text messages to each other in approximately real time. You can use IRC to have conversations with individuals or groups. IRC is very similar to <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-im">IM</a>, and offers many of the same capabilities, but predates IM by many years. </p>
		</dd>
		<dt>
				<a name="gl-jb-iso">
				</a>ISO 
</dt>
		<dd>
				<p>
						<span class="acronym">ISO</span> is an acronym that stands for International Standards Organization. It is also used as an abbreviation for the ISO-9660 format of a standard data CD-ROM. Fedora offers installation CDs for Fedora Core as downloadable files on the Internet, in the form of CD image files sometimes called ISO files. These files can be burned directly to CD media using a CD-Recordable drive, and the resulting CD will contain all the files on the original Fedora Core media. </p>
		</dd>
		<dt>
				<a name="gl-jb-kde">
				</a>KDE 
</dt>
		<dd>
				<p>KDE is a free and open desktop environment for UNIX-like operating systems such as Fedora. KDE also offers a complete development framework for writing graphical applications, as well as an office application suite. Refer to <a href="http://www.kde.org/whatiskde/" target="_top">http://www.kde.org/whatiskde/</a> for more information about KDE. </p>
		</dd>
		<dt>
				<a name="gl-jb-kernel">
				</a>kernel 
</dt>
		<dd>
				<p>A kernel is the core of an operating system, responsible for managing memory and conducting hardware operations. The Linux kernel used in Fedora is free and open source software, originally written by Linus Torvalds. Many computer scientists and programmers from around the world now contribute to its development. </p>
		</dd>
		<dt>
				<a name="gl-jb-kickstart">
				</a>kickstart 
</dt>
		<dd>
				<p>Kickstart is a facility that allows system administrators to automate the installation of Fedora. To use Kickstart, the administrator creates a configuration file which contains all the information needed by <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-anaconda">Anaconda</a> to complete the installation process. Refer to <a href="http://fedoraproject.org/wiki/Anaconda" target="_top">http://fedoraproject.org/wiki/Anaconda</a> for more information about Kickstart. </p>
		</dd>
		<dt>
				<a name="gl-jb-kudzu">
				</a>kudzu 
</dt>
		<dd>
				<p>The <code class="command">kudzu</code> utility usually runs at boot time. The <code class="command">kudzu</code> utility detects changes in the system's hardware configuration, and configures the devices for use with Fedora software. Refer to <a href="http://fedora.redhat.com/projects/additional-projects/kudzu/" target="_top">http://fedora.redhat.com/projects/additional-projects/kudzu/</a> for more information about <code class="command">kudzu</code>. </p>
		</dd>
		<dt>
				<a name="gl-jb-l10n">
				</a>l10n 
</dt>
		<dd>
				<p>An abbreviation for "localization," frequently used in programming to avoid unnecessary typing and misspelling. Localization is the provision of nation-specific settings for the representation of numbers, dates, currency, and other customary symbols. The <code class="literal">10</code> derives from the ten letters between the beginning <code class="literal">l</code> and the ending <code class="literal">n</code>. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-i18n">i18n</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-ldap">
				</a>LDAP 
</dt>
		<dd>
				<p>The Lightweight Directory Access Protocol, or <span class="acronym">LDAP</span> , is a standard for hierarchically organizing and accessing collections of information. This information may be practically anything, but LDAP is most often used to collect information about organizations, including personnel and resource information. Fedora includes support for OpenLDAP, which is a free and open source implementation of LDAP. For more information about OpenLDAP, refer to <a href="http://www.openldap.org/" target="_top">http://www.openldap.org/</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-lilo">
				</a>LILO 
</dt>
		<dd>
				<p>The LInux LOader, or <span class="acronym">LILO</span> , is a small program used on older Linux systems to boot the Linux kernel or some other operating systems. LILO has been superseded by <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-grub">GRUB</a> in Fedora. </p>
		</dd>
		<dt>
				<a name="gl-jb-lsb">
				</a>LSB 
</dt>
		<dd>
				<p>The Linux Standard Base, or <span class="acronym">LSB</span> , is a project that develops and promotes a set of standards to increase compatibility among Linux distributions. For more information about LSB, refer to <a href="http://www.linuxbase.org/" target="_top">http://www.linuxbase.org/</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-lspci">
				</a>lspci 
</dt>
		<dd>
				<p>The <code class="command">lspci</code> utility displays information about all PCI buses in the system and all devices connected to them. It is frequently used to diagnose problems with hardware recognition or driver compatibility. </p>
		</dd>
		<dt>
				<a name="gl-jb-md5sum">
				</a>md5sum 
</dt>
		<dd>
				<p>The <code class="command">md5sum</code> utility computes a 128-bit message digest hash value for any specified files. A hash value is a "fingerprint" for a given file, created by a computation that makes it very unlikely that any two files will create the same hash value. </p>
				<p>To download an MD5 hash program for Windows operating systems, refer to <a href="http://unxutils.sourceforge.net/" target="_top">http://unxutils.sourceforge.net/</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-memtest86">
				</a>memtest86 
</dt>
		<dd>
				<p>The Fedora Core Installation CD 1 includes a memory testing utility called <code class="command">memtest86</code>. To perform memory testing before you install Fedora Core, or to diagnose a RAM problem, enter <code class="command">memtest86</code> at the <code class="prompt">boot:</code> prompt. The tests continue until you press the <span><strong class="keycap">Esc</strong></span> key. </p>
		</dd>
		<dt>
				<a name="gl-jb-mirror">
				</a>mirror 
</dt>
		<dd>
				<p>A mirror is a complete copy of an online resource. System administrators of computers connected to the Internet often create and provide mirrors for public use. If a resource has one or more mirrors, many more users can access its content without overloading the original resource. </p>
		</dd>
		<dt>
				<a name="gl-jb-mount">
				</a>mount 
</dt>
		<dd>
				<p>To use a disk device such as a CD, USB drive, or floppy diskette, you must first <code class="command">mount</code> it. Fedora uses a single unified file system for all attached devices. Windows systems, on the other hand, use a "drive letter" for each disk device, such as <code class="systemitem">A:</code> or <code class="systemitem">C:</code>. When you <code class="command">mount</code> a disk device, its file system becomes part of the unified file system on Fedora. The device is mounted on a <em class="firstterm">mount point</em>, which is a directory that points to that device, such as <code class="filename">/media/floppy</code>. You must also unmount the file system before you eject or remove the disk, to insure all file information is safely written to the device. </p>
				<p>Since these functions are often handled through user-friendly helpers, you may perform all mounting, unmounting, and file browsing through the graphical desktop interface. For instance, if you use the <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-gnome">GNOME</a> Desktop, the <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-nautilus">Nautilus</a> file management utility makes it easy to perform these tasks. </p>
		</dd>
		<dt>
				<a name="gl-jb-mozilla">
				</a>Mozilla 
</dt>
		<dd>
				<p>The Mozilla Project produces several user applications such as the Firefox web browser and the Thunderbird email client. These programs are designed for standards compliance, performance and portability. For more information about Mozilla software, refer to <a href="http://www.mozilla.org/" target="_top">http://www.mozilla.org/</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-nautilus">
				</a>Nautilus 
</dt>
		<dd>
				<p>The <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-gnome">GNOME</a> desktop environment includes a file manager called Nautilus which provides a graphical display of your system and personal files. Nautilus also allows you to configure your desktop and Fedora, browse your photo collection, access your network resources, and more, all from an integrated interface. </p>
		</dd>
		<dt>
				<a name="gl-jb-package">
				</a>package 
</dt>
		<dd>
				<p>Users often refer to a <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-rpm">RPM</a> file as a <em class="firstterm">package</em>. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-rpm">RPM</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-pine">
				</a>Pine 
</dt>
		<dd>
				<p>
						<span class="acronym">Pine</span> , short for a Program for Internet News and Email, is a tool for reading, sending, and managing electronic messages. Refer to <a href="http://www.washington.edu/pine/" target="_top">http://www.washington.edu/pine/</a> for more information about <code class="command">Pine</code>. </p>
		</dd>
		<dt>
				<a name="gl-jb-rawhide">
				</a>Rawhide 
</dt>
		<dd>
				<p>Rawhide is a package repository which contains the latest development versions of packages which will eventually be included in Fedora. These latest versions are sometimes called "bleeding edge" <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-package">package</a>, since they often include new and untested technology. You should consider the Rawhide repository "unstable," since any Rawhide package <span class="emphasis"><em>might</em></span> be badly broken if the programmers are trying to add, change, or test features. If you want to develop programs for Fedora, you may want to install a system from Rawhide. If you only want to use a stable Fedora system, you should use the standard Fedora Core distribution instead. </p>
		</dd>
		<dt>
				<a name="gl-jb-rhel">
				</a>RHEL 
</dt>
		<dd>
				<p>Red Hat Enterprise Linux, or <span class="acronym">Red Hat Enterprise Linux</span> , is a fully-supported enterprise-class operating system for open source computing. Red Hat Enterprise Linux runs on many system architectures, is certified by top enterprise software and hardware vendors, and is based on Fedora technology. Refer to <a href="http://www.redhat.com/software/rhel/" target="_top">http://www.redhat.com/software/rhel/</a> for more information about Red Hat Enterprise Linux. </p>
		</dd>
		<dt>
				<a name="gl-jb-rhgb">
				</a>rhgb 
</dt>
		<dd>
				<p>Red Hat Graphical Boot, or <span><strong class="application"><span class="acronym">rhgb</span></strong></span>, is an optional component of the boot process. The <span><strong class="application">rhgb</strong></span> application produces a boot screen with a progress bar and fewer technical messages. The <span><strong class="application">rhgb</strong></span> application allows you to click a link to see the technical boot messages if desired. Systems that have been upgraded from Red Hat Linux to Fedora Core are not configured to include <span><strong class="application">rhgb</strong></span>. </p>
		</dd>
		<dt>
				<a name="gl-jb-rhn-applet">
				</a>RHN Applet 
</dt>
		<dd>
				<p>The <span><strong class="application">rhn-applet</strong></span> utility was originally designed for use with Red Hat Enterprise Linux and Red Hat Network. It provides a notification and user interface for system updates using <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-up2date">up2date</a>. It allows the user to retrieve and install system updates, but this usage is no longer recommended. Users should use <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-yum">yum</a> for system updates instead. </p>
		</dd>
		<dt>
				<a name="gl-jb-rpm">
				</a>RPM 
</dt>
		<dd>
				<p>
						<span class="acronym">RPM</span> stands for RPM Package Manager. RPM is a robust database system for maintaining software on Fedora systems. Software packaged for Fedora is distributed in special package files called RPM files, or RPMs. System owners use the <code class="command">rpm</code> utility to query the RPM database for information about installed software. Although some administrators use <code class="command">rpm</code> to install, update, and remove software, it is recommended that you use <code class="command">yum</code> for these purposes. </p>
		</dd>
		<dt>
				<a name="gl-jb-rsync">
				</a>rsync 
</dt>
		<dd>
				<p>The <code class="command">rsync</code> utility is used to perform incremental file transfers, meaning it can transfer only sections of data that have changed. Administrators frequently use <code class="command">rsync</code> to create a <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-mirror">mirror</a> of an online resource. Refer to <a href="http://samba.anu.edu.au/rsync/" target="_top">http://samba.anu.edu.au/rsync/</a> for more information about <code class="command">rsync</code>. </p>
		</dd>
		<dt>
				<a name="gl-jb-scim">
				</a>SCIM 
</dt>
		<dd>
				<p>The Smart Common Input Method platform, or <span class="acronym">SCIM</span> , is a C++ library that abstracts input method interface into simple, independent classes. It provides a higher level and simpler interface than some other input method platforms. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-input-method">Input method</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-selinux">
				</a>SELinux 
</dt>
		<dd>
				<p>SELinux is a set of extensions to the Linux <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-kernel">kernel</a> that provide extremely strong security. SELinux is based on role definitions, and allows very granular control over access to system resources based on those roles. These security measures limit the risk associated with computer intrusions by unauthorized persons. For more information about SELinux, refer to <a href="http://www.nsa.gov/selinux/" target="_top">http://www.nsa.gov/selinux/</a> and <a href="http://fedora.redhat.com/docs/selinux-faq" target="_top">http://fedora.redhat.com/docs/selinux-faq</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-sha1sum">
				</a>sha1sum 
</dt>
		<dd>
				<p>The <code class="command">sha1sum</code> utility computes a 160-bit message digest hash value for any specified files. A hash value is a "fingerprint" for a given file, created by a computation that makes it very unlikely that any two files will create the same hash value. </p>
				<p>Download mirrors for Fedora Core <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-iso">ISO</a> image files also include a related SHA1SUMS file which contains the hash values for the <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-iso">ISO</a> files. Run <code class="command">sha1sum</code> against the downloaded files to verify the hash value. If a file's hash value does not match, you should not use that file to burn a CD. Try downloading the file again. </p>
				<p>To download an SHA-1 hash program for Windows operating systems, refer to <a href="http://unxutils.sourceforge.net/" target="_top">http://unxutils.sourceforge.net/</a>. </p>
		</dd>
		<dt>
				<a name="gl-jb-sodipodi">
				</a>Sodipodi 
</dt>
		<dd>
				<p>Sodipodi is a vector graphics illustration application. It uses W3C SVG as its default format. Refer to <a href="http://sourceforge.net/projects/sodipodi/" target="_top">http://sourceforge.net/projects/sodipodi/</a> for more information. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-inkscape">Inkscape</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-srpm">
				</a>SRPM 
</dt>
		<dd>
				<p>A source <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-rpm">RPM</a>, or <span class="acronym">SRPM</span> , contains the source code for a <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-rpm">RPM</a> package. To read or modify a program's source, install its SRPM. You do not need SRPM packages to use the software itself. </p>
				<p>See Also <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-rpm">RPM</a>.</p>
		</dd>
		<dt>
				<a name="gl-jb-system-config-packages">
				</a>system-config-packages 
</dt>
		<dd>
				<p>The <span><strong class="application">system-config-packages</strong></span> utility is a package installation for new Fedora Core systems which have no software updates installed yet. Since most administrators and users update their system software regularly, <span><strong class="application">system-config-packages</strong></span> is not often used. Users should instead use the <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-yum">yum</a> utility to install new software. </p>
		</dd>
		<dt>
				<a name="gl-jb-up2date">
				</a>up2date 
</dt>
		<dd>
				<p>The <span><strong class="application">up2date</strong></span> application is a utility for managing and updating software on Red Hat Enterprise Linux and Fedora systems. The <span><strong class="application">up2date</strong></span> application has been superseded by <code class="command">yum</code>-based utilities. Refer to <a href="http://fedora.redhat.com/docs/yum/" target="_top">http://fedora.redhat.com/docs/yum/</a> for more information on managing software on your Fedora system. </p>
		</dd>
		<dt>
				<a name="gl-jb-vino">
				</a>vino 
</dt>
		<dd>
				<p>The <code class="command">vino</code> utility is a variant of <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-vnc">VNC</a> used in Fedora Core 4 and beyond for remote assistance and control. </p>
		</dd>
		<dt>
				<a name="gl-jb-vnc">
				</a>VNC 
</dt>
		<dd>
				<p>Virtual Network Computing, or <span><strong class="application">VNC</strong></span>, is communication software that allows you to view and interact with another computer over the network. Fedora includes VNC server and client software, as well as the customized <a href="http://fedora.redhat.com/docs/jargon-buster/en_US/fedora-glossary.html#gl-jb-vino">vino</a> package. Refer to <a href="http://www.realvnc.com/" target="_top">http://www.realvnc.com/</a> for more information about VNC. </p>
		</dd>
		<dt>
				<a name="gl-jb-x86">
				</a>x86 
</dt>
		<dd>
				<p>An abbreviation for "Intel 80x86," the microprocessor family used in most PC systems. Users and developers tend to use this term rather broadly, since the very old 8086 and 80286 microprocessors are rarely seen and not usable with most modern Linux distributions. In Fedora terms, this abbreviation stands for Intel and Intel-compatible processors, Pentium class and above. </p>
		</dd>
		<dt>
				<a name="gl-jb-xfs">
				</a>XFS 
</dt>
		<dd>
				<p>XFS is a scalable journaling filesystem developed by SGI and available for Fedora systems. Refer to <a href="http://oss.sgi.com/projects/xfs/faq.html#whatisxfs" target="_top">http://oss.sgi.com/projects/xfs/faq.html#whatisxfs</a> for more information about XFS. </p>
		</dd>
		<dt>X Window System 
</dt>
		<dd>
				<p>The X Window System, or simply "X," is the underlying technology for GNOME, KDE, and other graphical environments used in Fedora. X is a network-based system for displaying and communicating graphical input and output. It is very flexible and is suitable for a wide variety of configurations such as remote desktops and thin-client applications. </p>
		</dd>
		<dt>
				<a name="gl-jb-xen">
				</a>Xen 
</dt>
		<dd>
				<p>Xen is an open source virtual machine monitor for Intel x86 machines which supports concurrent execution of multiple guest operating systems. Using Xen, an administrator can set up many virtual machines running on a single physical computer. Any single virtual machine, while executing, performs nearly as well as the physical system without Xen. Xen may be used for testing software, providing large-scale web hosting on limited hardware, any many other applications. </p>
		</dd>
		<dt>
				<a name="gl-jb-yum">
				</a>yum 
</dt>
		<dd>
				<p>The Yellow Dog Updater, or <span class="acronym">yum</span> , is a complete software management utility for RPM-based systems such as Fedora. It automatically determines software requirements, or <em class="firstterm">dependencies</em>, and uses this data to install, update, or remove packages. Refer to <a href="http://linux.duke.edu/projects/yum/" target="_top">http://linux.duke.edu/projects/yum/</a> for more information about <code class="command">yum</code>. </p>
		</dd><img src ="http://www.blogjava.net/sk8boy/aggbug/49603.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2006-06-01 14:54 <a href="http://www.blogjava.net/sk8boy/articles/49603.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>压缩文件总结（转自水木清华BBS）</title><link>http://www.blogjava.net/sk8boy/articles/49270.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Wed, 31 May 2006 07:28:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/49270.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/49270.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/49270.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/49270.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/49270.html</trackback:ping><description><![CDATA[发信人: runfor (小睡熊), 信区: LinuxApp<br />标  题: 压缩文件总结（zz）<br />发信站: 水木社区 (Sun May 22 09:01:45 2005), 站内<br /><br />对于刚刚接触Linux的人来说，一定会给Linux下一大堆各式各样的文件名给搞晕。别个不说，单单就压缩文件为例，我们知道在Windows下最常见的压缩文件就只有两种，一是,zip，另一个是.rap。可是Linux就不同了，它有.gz、.tar.gz、tgz、bz2、.Z、.tar等众多的压缩文件名，此外windows下的.zip和.rar也可以在Linux下使用，不过在Linux使用.zip和.rar的人就太少了。本文就来对这些常见的压缩文件进行一番小结，希望你下次遇到这些文件时不至于被搞晕:) <br /><br />　　在具体总结各类压缩文件之前呢，首先要 弄清两个概念：打包和压缩。打包是指将一大堆文件或目录什么的变成一个总的文件，压缩则是将一个大的文件通过一些压缩算法变成一个小文件。为什么要区分这两个概念呢？其实这源于Linux中的很多压缩程序只能针对一个文件进行压缩，这样当你想要压缩一大堆文件时，你就得先借助另它的工具将这一大堆文件先打成一个包，然后再就原来的压缩程序进行压缩。 <br /><br />　　Linux下最常用的打包程序就是tar了，使用tar程序打出来的包我们常称为tar包，tar包文件的命令通常都是以.tar结尾的。生成tar包后，就可以用其它的程序来进行压缩了，所以首先就来讲讲tar命令的基本用法： <br /><br />　　tar命令的选项有很多(用man tar可以查看到)，但常用的就那么几个选项，下面来举例说明一下： <br /><br />　　# tar -cf all.tar *.jpg <br />　　这条命令是将所有.jpg的文件打成一个名为all.tar的包。-c是表示产生新的包，-f指定包的文件名。 <br /><br />　　# tar -rf all.tar *.gif <br />　　这条命令是将所有.gif的文件增加到all.tar的包里面去。-r是表示增加文件的意思。 <br /># tar -uf all.tar logo.gif <br />　　这条命令是更新原来tar包all.tar中logo.gif文件，-u是表示更新文件的意思。 <br /><br />　　# tar -tf all.tar <br />　　这条命令是列出all.tar包中所有文件，-t是列出文件的意思 <br /><br />　　# tar -xf all.tar <br />　　这条命令是解出all.tar包中所有文件，-t是解开的意思 <br /><br />　　以上就是tar的最基本的用法。为了方便用户在打包解包的同时可以压缩或解压文件，tar提供了一种特殊的功能。这就是tar可以在打包或解包的同时调用其它的压缩程序，比如调用gzip、bzip2等。 <br /><br />　　1) tar调用gzip <br /><br />　　gzip是GNU组织开发的一个压缩程序，.gz结尾的文件就是gzip压缩的结果。与gzip相对的解压程序是gunzip。tar中使用-z这个参数来调用gzip。下面来举例说明一下： <br /><br />　　# tar -czf all.tar.gz *.jpg <br />　　这条命令是将所有.jpg的文件打成一个tar包，并且将其用gzip压缩，生成一个gzip压缩过的包，包名为all.tar.gz <br /><br />　　# tar -xzf all.tar.gz <br />　　这条命令是将上面产生的包解开。 <br /><br />　　2) tar调用bzip2 <br /><br />　　bzip2是一个压缩能力更强的压缩程序，.bz2结尾的文件就是bzip2压缩的结果。与bzip2相对的解压程序是bunzip2。tar中使用-j这个参数来调用gzip。下面来举例说明一下： <br /><br />　　# tar -cjf all.tar.bz2 *.jpg <br />　　这条命令是将所有.jpg的文件打成一个tar包，并且将其用bzip2压缩，生成一个bzip2压缩过的包，包名为all.tar.bz2 <br /><br />　　# tar -xjf all.tar.bz2 <br />　　这条命令是将上面产生的包解开。 <br />3)tar调用compress <br /><br />　　compress也是一个压缩程序，但是好象使用compress的人不如gzip和bzip2的人多。.Z结尾的文件就是bzip2压缩的结果。与 compress相对的解压程序是uncompress。tar中使用-Z这个参数来调用gzip。下面来举例说明一下： <br /><br />　　# tar -cZf all.tar.Z *.jpg <br />　　这条命令是将所有.jpg的文件打成一个tar包，并且将其用compress压缩，生成一个uncompress压缩过的包，包名为all.tar.Z <br /><br />　　# tar -xZf all.tar.Z <br />　　这条命令是将上面产生的包解开 <br /><br />　　有了上面的知识，你应该可以解开多种压缩文件了，下面对于tar系列的压缩文件作一个小结： <br /><br />　　1)对于.tar结尾的文件 <br /><br />　　tar -xf all.tar <br /><br />　　2)对于.gz结尾的文件 <br /><br />　　gzip -d all.gz <br />　　gunzip all.gz <br /><br />　　3)对于.tgz或.tar.gz结尾的文件 <br /><br />　　tar -xzf all.tar.gz <br />　　tar -xzf all.tgz <br /><br />　　4)对于.bz2结尾的文件 <br /><br />　　bzip2 -d all.bz2 <br />　　bunzip2 all.bz2 <br /><br />　　5)对于tar.bz2结尾的文件 <br /><br />　　tar -xjf all.tar.bz2 <br /><br />　　6)对于.Z结尾的文件 <br /><br />　　uncompress all.Z <br /><br />　　7)对于.tar.Z结尾的文件 <br /><br />　　tar -xZf all.tar.z <br /><br />　　另外对于Window下的常见压缩文件.zip和.rar，Linux也有相应的方法来解压它们： <br /><br />　　1)对于.zip <br /><br />　　linux下提供了zip和unzip程序，zip是压缩程序，unzip是解压程序。它们的参数选项很多，这里只做简单介绍，依旧举例说明一下其用法： <br /><br />　　# zip all.zip *.jpg <br />　　这条命令是将所有.jpg的文件压缩成一个zip包 <br /># unzip all.zip <br />　　这条命令是将all.zip中的所有文件解压出来 <br /><br />　　2)对于.rar <br /><br />　　要在linux下处理.rar文件，需要安装RAR for Linux，可以从网上下载，但要记住，RAR for Linux <br />不是免费的；可从http://www.rarsoft.com/download.htm下载RAR for Linux 3.2.0，然后安装： <br /><br />　　# tar -xzpvf rarlinux-3.2.0.tar.gz <br />　　# cd rar <br />　　# make <br /><br />　　这样就安装好了，安装后就有了rar和unrar这两个程序，rar是压缩程序，unrar是解压程序。它们的参数选项很多，这里只做简单介绍，依旧举例说明一下其用法： <br /><br />　　# rar a all *.jpg <br />　　这条命令是将所有.jpg的文件压缩成一个rar包，名为all.rar，该程序会将.rar 扩展名将自动附加到包名后。 <br /><br />　　# unrar e all.rar <br />　　这条命令是将all.rar中的所有文件解压出来 <br /><br />　　到此为至，我们已经介绍过linux下的tar、gzip、gunzip、bzip2、bunzip2、compress、uncompress、 zip、unzip、rar、unrar等程式，你应该已经能够使用它们对.tar、.gz、.tar.gz、.tgz、.bz2、.tar.bz2、. Z、.tar.Z、.zip、.rar这10种压缩文件进行解压了，以后应该不需要为下载了一个软件而不知道如何在Linux下解开而烦恼了。而且以上方法对于Unix也基本有效。 <br /><br />　　本文介绍了linux下的压缩程式tar、gzip、gunzip、bzip2、bunzip2、 compress、uncompress、zip、unzip、rar、unrar等程式，以及如何使用它们对.tar、.gz、.tar.gz、. tgz、.bz2、.tar.bz2、.Z、.tar.Z、.zip、.rar这10种压缩文件进行操作。<img src ="http://www.blogjava.net/sk8boy/aggbug/49270.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2006-05-31 15:28 <a href="http://www.blogjava.net/sk8boy/articles/49270.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> 使用虚拟内存（virtual memory，VM）文件系统和绑定安装（转自ajing的博客）</title><link>http://www.blogjava.net/sk8boy/articles/49265.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Wed, 31 May 2006 07:20:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/49265.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/49265.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/49265.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/49265.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/49265.html</trackback:ping><description><![CDATA[<p>
				<span class="unnamed3">**********<br />Daniel Robbins（drobbins@gentoo.org）<br />总裁／首席执行官，Gentoo Technologies，Inc.<br />2001 年 9 月<br />**********<br />伴随着 Linux 2.4 版本的发行，出现了大量的文件系统可能性，其中包括 ReiserFS、XFS、GFS 和其它文件系统。这些文件系统听起来的确都很酷，但是它们真正能做些什么呢，擅长在哪些方面，以及在 Linux 产品环境下如何才能安全地使用它们呢？Daniel Robbins 通过向您展示如何在 Linux 2.4 的环境下建立这些新的高级文件系统来回答以上的问题。在这个部分，Daniel 简单地介绍了 tmpfs，一个基于 VM 的文件系统，还向您介绍了 2.4 版本的“绑定”安装功能带来的新的可能。<br /><br />在本文中，我们要谈论几个相对次要的主题。首先，我们会简单地介绍一下 tmpfs，也就是我们知道的虚拟内存（virtual memory，VM）文件系统。Tmpfs 可能是现在 Linux 可以使用的最好的类似于 RAM 磁盘的系统，而且是 2.4 内核的一个新功能。然后，我们将简单地介绍另一个 2.4 内核的新功能，叫做“绑定安装”，它在安装（和重新安装）文件系统的时候带来了很大的灵活性。介绍 tmpfs<br />如果我必须一下子说清楚 tmpfs，我会说 tmpfs 就象虚拟磁盘（ramdisk），但不一样。象虚拟磁盘一样，tmpfs 可以使用您的 RAM，但它也可以使用您的交换分区来存储。而且传统的虚拟磁盘是个块设备，并需要一个 mkfs 之类的命令才能真正地使用它，tmpfs 是一个文件系统，而不是块设备；您只是安装它，它就可以使用了。总而言之，这让 tmpfs 成为我有机会遇到的最好的基于 RAM 的文件系统。<br /><br />tmpfs 和 VM<br />让我们来看看 tmpfs 更有趣的一些特性吧。正如我前面提到的一样，tmpfs 既可以使用 RAM，也可以使用交换分区。刚开始这看起来可能有点武断，但请记住 tmpfs 也是我们知道的“虚拟内存文件系统”。而且，您可能也知道，Linux 内核的虚拟内存资源同时来源于您的 RAM 和交换分区。内核中的 VM 子系统将这些资源分配到系统中的其它部分，并负责在后台管理这些资源，通常是透明地将 RAM 页移动到交换分区或从交换分区到 RAM 页。<br /><br />tmpfs 文件系统需要 VM 子系统的页面来存储文件。tmpfs 自己并不知道这些页面是在交换分区还是在 RAM 中；做这种决定是 VM 子系统的工作。tmpfs 文件系统所知道的就是它正在使用某种形式的虚拟内存。<br /><br />不是块设备<br />这里是 tmpfs 文件系统另一个有趣的特性。不同于大多数“标准的”文件系统，如 ext3、ext2、XFS、JFS、ReiserFS 和其它一些系统，tmpfs 并不是存在于一个底层块设备上面。因为 tmpfs 是直接建立在 VM 之上的，您用一个简单的 mount 命令就可以创建 tmpfs 文件系统了。<br /><br /># mount tmpfs /mnt/tmpfs -t tmpfs<br /><br />执行这个命令之后，一个新的 tmpfs 文件系统就安装在 /mnt/tmpfs，随时可以使用。注意，不需运行 mkfs.tmpfs；事实上，那是不可能的，因为没有这样的命令存在。在 mount 命令执行之后，文件系统立即就被安装并且可以使用了，类型是 tmpfs。这和 Linux 虚拟磁盘如何使用大相径庭；标准的 Linux 虚拟磁盘是块设备，所以在使用它们之前必须用您选择的文件系统将其格式化。相反，tmpfs 是一个文件系统。所以，您可以简单地安装它就可以使用了。<br /><br />Tmpfs 的优势<br /><br />动态文件系统的大小<br />您可能想知道我们前面在 /mnt/tmpfs 安装的 tmpfs 文件系统有多大。这个问题的答案有点意外，特别是在和基于磁盘的文件系统比较的时候。/mnt/tmpfs 最初会只有很小的空间，但随着文件的复制和创建，tmpfs 文件系统驱动程序会分配更多的 VM，并按照需求动态地增加文件系统的空间。而且，当 /mnt/tmpfs 中的文件被删除时，tmpfs 文件系统驱动程序会动态地减小文件系统并释放 VM 资源，这样做可以将 VM 返回到循环当中以供系统中其它部分按需要使用。因为 VM 是宝贵的资源，所以您一定不希望任何东西浪费超出它实际所需的 VM，tmpfs 的好处之一就在于这些都是自动处理的。 请参阅参考资料。<br /><br />速度<br />tmpfs 的另一个主要的好处是它闪电般的速度。因为典型的 tmpfs 文件系统会完全驻留在 RAM 中，读写几乎可以是瞬间的。即使用了一些交换分区，性能仍然是卓越的，当更多空闲的 VM 资源可以使用时，这部分 tmpfs 文件系统会被移动到 RAM 中去。让 VM 子系统自动地移动部分 tmpfs 文件系统到交换分区实际上对性能上是好的，因为这样做可以让 VM 子系统为需要 RAM 的进程释放空间。这一点连同它动态调整大小的能力，比选择使用传统的 RAM 磁盘可以让操作系统有好得多的整体性能和灵活性。<br /><br />没有持久性<br />这看起来可能不象是个积极因素，tmpfs 数据在重新启动之后不会保留，因为虚拟内存本质上就是易失的。我想您可能猜到了 tmpfs 被称为“tmpfs”的一个原因，不是吗？然而，这实际上可以是一件好事。它让 tmpfs 成为一个保存您不需保留的数据（如临时文件，可以在 /tmp 中找到，还有 /var 文件系统树的某些部分）的卓越的文件系统。<br /><br />使用 tmpfs<br />为了使用 tmpfs，您所需要的就是启用了“Virtual memory file system support（以前是 shm fs）”选项的 2.4 系列内核；这个选项在内核配置选项的“File systems”部分。一旦您有了一个启用了 tmpfs 的内核，您就可以开始安装 tmpfs 文件系统了。其实，在您所有的 2.4 内核中都打开 tmpfs 选项是个好主意，不管您是否计划使用 tmpfs。这是因为您需要内核 tmpfs 支持来使用 POSIX 共享的内存。然而，System V 共享的内存不需要内核中有 tmpfs 就可以工作。注意，您不需要为了让 POSIX 共享的内存工作而安装 tmpfs 文件系统；您只需要在内核中支持 tmpfs 就可以了。POSIX 共享的内存现在使用得不太多，但这种情况可能会随着时间而改变。<br /><br />避免低 VM 情况<br />tmpfs 根据需要动态增大或减小的事实让人疑惑：如果您的 tmpfs 文件系统增大到它耗尽了所有虚拟内存的程度，而您没有剩余的 RAM 或交换分区，这时会发生什么？一般来说，这种情况是有点讨厌。如果是 2.4.4 内核，内核会立即锁定。如果是 2.4.6 内核，VM 子系统已经以很多种方式得到了修正，虽然耗尽 VM 并不是一个美好的经历，事情也不会完全地失败。如果 2.4.6 内核到了无法分配更多 VM 的程度，您显然不愿意不能向 tmpfs 文件系统写任何新数据。另外，可能会发生其他一些事情。首先，系统的其他一些进程会无法分配更多的内存；通常，这意味着系统多半会变得极度缓慢而且几乎没有响应。这样，超级用户要采取必要的步骤来缓解这种低 VM 的情况就会很困难，或异常地耗时。<br /><br />另外，内核有一个内建的最终防线系统，用来在没有可用内存的时候释放内存，它会找到占用 VM 资源的进程并终止该进程。不幸的是，这种“终止进程”的解决方案在 tmpfs 的使用增加引起 VM 耗尽的情况下通常会导致不良后果。以下是原因。tmpfs 本身不能（也不应该）被终止，因为它是内核的一部分而非一个用户进程，而且也没有容易的方法可以让内核找出是那个进程占满了 tmpfs 文件系统。所以，内核会错误地攻击它能找到的最大的占用 VM 的进程，通常会是 X 服务器（X server），如果您碰巧在使用它。所以，您的 X 服务器会被终止，而引起低 VM 情况的根本原因（tmpfs）却没有被解决。Ick.<br /><br />低 VM：解决方案<br />幸运的是，tmpfs 允许您在安装或重新安装文件系统的时候指定文件系统容量的最大值上限。实际上，从 2.4.6 内核到 2.11g 内核，这些参数只能在安装时设置，而不是重新安装时，但我们可以期望在不久的将来可以在重新安装时设置这些参数。tmpfs 容量最大值的最佳设置依赖于资源和您特定的 Linux 主机的使用模式；这个想法是要防止一个完全使用资源的 tmpfs 文件系统耗尽所有虚拟内存结果导致我们前面谈到的糟糕的低 VM 情况。寻找好的 tmpfs 上限值的一个好方法是使用 top 来监控您系统的交换分区在高峰使用阶段的使用情况。然后，确保指定的 tmpfs 上限稍小于所有这些高峰使用时间内空闲交换分区和空闲 RAM 的总和。<br /><br />创建有最大容量的 tmpfs 文件系统很容易。要创建一个新的最大 32 MB 的 tmpfs 文件系统，请键入：<br /># mount tmpfs /dev/shm -t tmpfs -o size=32m<br /><br />这次，我们没有把 tmpfs 文件系统安装在 /mnt/tmpfs，而是创建在 /dev/shm，这正好是 tmpfs 文件系统的“正式”安装点。如果您正好在使用 devfs，您会发现这个目录已经为您创建好了。<br /><br />还有，如果我们想将文件系统的容量限制在 512 KB 或 1 GB 以内，我们可以分别指定 size=512k 和 size=1g。除了限制容量，我们还可以通过指定 nr_inodes=x 参数限制索引节点（文件系统对象）。在使用 nr_inodes 时，x 可以是一个简单的整数，后面还可以跟一个 k、m 或 g 指定千、百万或十亿（！）个索引节点。<br /><br />而且，如果您想把上面的 mount tmpfs 命令的等价功能添加到 /etc/fstab，应该是这样：<br /><br /><br /><br />tmpfs /dev/shm tmpfs size=32m 0 0<br /><br /><br />在现存的安装点上安装<br />在以前使用 2.2 的时候，试图在已经安装了东西的安装点再次安装任何东西都会引发错误。然而，重写后的内核安装代码使多次使用安装点不再成为问题。这里是一个示例的情况：假设我们有一个现存的文件系统安装在 /tmp。然而，我们决定要开始使用 tmpfs 进行 /tmp 的存储。过去，您唯一的选择就是卸载 /tmp 并在其位置重新安装您新的 tmpfs/tmp 文件系统，如下所示：<br /><br /><br /><br /># umount /tmp<br /><br /># mount tmpfs /tmp -t tmpfs -o size=64m<br /><br />可是，这种解决方案也许对您不管用。可能有很多正在运行的进程在 /tmp 中有打开的文件；如果是这样，在试图卸载 /tmp 时，您就会遇到如下的错误：<br /><br />umount: /tmp: device is busy<br /><br /><br />然而，使用最近的 2.4 内核，您可以安装您新的 /tmp 文件系统，而不会遇到“device is busy”错误：<br /><br /><br /><br /># mount tmpfs /tmp -t tmpfs -o size=64m<br /><br /><br />用一条命令，您新的 tmpfs /tmp 文件系统就被安装在 /tmp，并安装在已经安装的不能再被直接访问的分区之上。然而，虽然您不能访问原来的 /tmp，任何在原文件系统上还有打开文件的进程都可以继续访问它们。而且，如果您 unmount 基于 tmpfs 的 /tmp，原来安装的 /tmp 文件系统会重新出现。实际上，您在相同的安装点上可以安装任意数目的文件系统，安装点就象一个堆栈；卸载当前的文件系统，上一个最近安装的文件系统就会重新出现。<br /><br />绑定安装<br />使用绑定安装，我们可以将所有甚至部分已经安装的文件系统安装到另一个位置，而在两个安装点可以同时访问该文件系统。例如，您可以使用绑定安装来安装您现存的根文件系统到 /home/drobbins/nifty，如下所示：<br /><br /><br /><br /># mount --bind / /home/drobbins/nifty<br /><br />现在，如果您观察 /home/drobbins/nifty 的内部，您就会看到您的根文件系统（/home/drobbins/nifty/etc、/home/drobbins/nifty/opt 等）。而且，如果您在根文件系统修改文件，您在 /home/drobbins/nifty 中也可以看到所作的改动。这是因为它们是同一个文件系统；内核只是简单地为我们将该文件系统映射到两个不同的安装点。注意，当您在另一处安装文件系统时，任何安装在绑定安装文件系统内部的安装点的文件系统都不会随之移动。换句话说，如果您在单独的文件系统上有 /usr，我们前面执行的绑定安装就会让 /home/drobbins/nifty/usr 为空。您会需要附加的绑定安装命令来使您能够浏览位于 /home/drobbins/nifty/usr 的 /usr 的内容：<br /><br /><br /><br /># mount --bind /usr /home/drobbins/nifty/usr<br /><br />绑定安装部分文件系统<br />绑定安装让更妙的事情成为可能。假设您有一个 tmpfs 文件系统安装在它的传统位置 /dev/shm，您决定要开始在当前位于根文件系统的 /tmp 使用 tmpfs。虽然可以在 /tmp（这是可能的）安装一个新的 tmpfs 文件系统，您也可以决定让新的 /tmp 共享当前安装的 /dev/shm 文件系统。然而，虽然您可以在 /tmp 绑定安装 /dev/shm 就完成了，但您的 /dev/shm 还包含一些您不想在 /tmp 出现的目录。所以，您怎么做呢？这样如何：<br /><br /><br /><br /># mkdir /dev/shm/tmp<br /><br /><br /><br /># chmod 1777 /dev/shm/tmp<br /><br /><br /><br /># mount --bind /dev/shm/tmp /tmp<br /><br /><br />在这个示例中，我们首先创建了一个 /dev/shm/tmp 目录，然后给它 1777 权限，对 /tmp 适当的许可。既然我们的目录已经准备好了，我们可以安装，也只能安装 /dev/shm/tmp 到 /tmp。所以，虽然 /tmp/foo 会映射到 /dev/shm/tmp/foo，但您没有办法从 /tmp 访问 /dev/shm/bar 文件。<br /><br />正如您所见，绑定安装非常强大，让您可以轻易地修改文件系统设计，丝毫不必忙乱。</span>
		</p><img src ="http://www.blogjava.net/sk8boy/aggbug/49265.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2006-05-31 15:20 <a href="http://www.blogjava.net/sk8boy/articles/49265.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>pure-ftpd的参数设置</title><link>http://www.blogjava.net/sk8boy/articles/40311.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Mon, 10 Apr 2006 11:39:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/40311.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/40311.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/40311.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/40311.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/40311.html</trackback:ping><description><![CDATA[<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-0:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">当存在同名文件时，旧版本的文件不被删除或者截断，而是采用临时文件。当整个文件上传完毕之后，才指向新的文件。这个开关选项跟虚拟配额不兼容。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-1:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">在系统日志的输出中，记录每个会话（</span>
				<span lang="EN-US">
						<font face="Courier New">Session</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">）的</span>
				<span lang="EN-US">
						<font face="Courier New">PID</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-4:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">只监听</span>
				<span lang="EN-US">
						<font face="Courier New">IPv4</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">的连接</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-6:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">只监听</span>
				<span lang="EN-US">
						<font face="Courier New">IPv6</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">的连接</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-a &lt;gid&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">只有通过认证的用户才可以直接访问它的</span>
				<span lang="EN-US">
						<font face="Courier New">home</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">目录。该选项对没有</span>
				<span lang="EN-US">
						<font face="Courier New">shell</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">的系统用户特别有用。注意，这里的</span>
				<span lang="EN-US">
						<font face="Courier New">&lt;gid&gt;</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">是组的数组，而非字母显示。并且，</span>
				<span lang="EN-US">
						<font face="Courier New">root</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">始终对整个文件系统有完整的访问权。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-A:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">除了</span>
				<span lang="EN-US">
						<font face="Courier New">root</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">之外，都可以使用</span>
				<span lang="EN-US">
						<font face="Courier New">chroot()</font>
				</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-b:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">忽略部分</span>
				<span lang="EN-US">
						<font face="Courier New">RFC</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">的标准，以处理完全坏掉的客户端、穿越防火墙或者</span>
				<span lang="EN-US">
						<font face="Courier New">NAT</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">盒</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-B:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">以标准的方式在后台启动服务器</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-c &lt;num&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">允许同时连接的客户端数列。默认是</span>
				<span lang="EN-US">
						<font face="Courier New">50</font>
				</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-C &lt;num&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">同一</span>
				<span lang="EN-US">
						<font face="Courier New">IP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">最大连接数</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-d:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">在系统日志中记录各种信息，口令不会记入日志中，推荐只有需要</span>
				<span lang="EN-US">
						<font face="Courier New">debug</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">时使用。如果两个</span>
				<span lang="EN-US">
						<font face="Courier New">-d</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">，相应信息也一并记入日志。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-D:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">即使当客户端没有使用</span>
				<span lang="EN-US">
						<font face="Courier New">-a</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">选项时，同样列出所有以</span>
				<span lang="EN-US">
						<font face="Courier New">”.”</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">开头的隐藏文件。不推荐使用。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-e:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">只开放匿名用户访问</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-E:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">只开放认证用户使用，匿名访问被禁止</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-f &lt;facility&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">使用指定程序记录系统日志，默认时</span>
				<span lang="EN-US">
						<font face="Courier New">’ftp’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。如果使用</span>
				<span lang="EN-US">
						<font face="Courier New">’-f none’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">则不记录日志。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-F &lt;fortune file&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">在登陆的时候显示一个</span>
				<span lang="EN-US">
						<font face="Courier New">fortune</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">信息，而不是固定的登陆信息。其中</span>
				<span lang="EN-US">
						<font face="Courier New">&lt;fortune file&gt;</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">是符合</span>
				<span lang="EN-US">
						<font face="Courier New">fortune</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">格式的文本文件，fortune信息之间用'%'号隔开。</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">这是需要在编译时加入</span>
				<span lang="EN-US">
						<font face="Courier New">’—with-cookie’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">选项。如果仅仅是一个简单的文本文件，则在每次登陆是显示相同的信息。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-g &lt;pid file&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">改变默认</span>
				<span lang="EN-US">
						<font face="Courier New">pid</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">文件的位置。默认是位于</span>
				<span lang="EN-US">
						<font face="Courier New">/var/run/pure-ftpd.pid</font>
				</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-G:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">不允许重命名</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-H:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">系统默认是要对</span>
				<span lang="EN-US">
						<font face="Courier New">IP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">地址进行解析，才记入日志文件中。使用这个选项，则可以避免这样做。从而避免带宽的浪费。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-i:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">不论目录的权限设置，匿名用户始终不能进行上传</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-I &lt;timeout&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">发呆的时间，以分钟为单位。默认是</span>
				<span lang="EN-US">
						<font face="Courier New">15</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">分钟</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-j:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">如果用户的</span>
				<span lang="EN-US">
						<font face="Courier New">home</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">目录不存在，就自动创建</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-k &lt;percentage&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">当</span>
				<span lang="EN-US">
						<font face="Courier New">FTP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">服务器占用空间超过规定的百分比，则不能再上传文件了。不用加</span>
				<span lang="EN-US">
						<font face="Courier New">’%</font>
				</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-K:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">允许用户</span>
				<span lang="EN-US">
						<font face="Courier New">resume</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">和</span>
				<span lang="EN-US">
						<font face="Courier New">upload</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">文件，但是不可以删除和重命名这些文件。空的文件夹也可以被删除。可以通过</span>
				<span lang="EN-US">
						<font face="Courier New">’-r’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">禁止该选项。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-l &lt;authentication&gt;</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">或者</span>
				<span lang="EN-US">
						<font face="Courier New">-l &lt;authentication&gt;:&lt;config file&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">添加一个新的规则</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-L &lt;max files&gt;:&lt;max depth&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">默认的，</span>
				<span lang="EN-US">
						<font face="Courier New">pure-ftpd</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">不会显示超过</span>
				<span lang="EN-US">
						<font face="Courier New">2000</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">个文件或者深度大于</span>
				<span lang="EN-US">
						<font face="Courier New">5</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">的路径</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-m &lt;cpu load&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">如果</span>
				<span lang="EN-US">
						<font face="Courier New">CPU</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">负载超过指定值，则不运行匿名用户下载。但是上传依然允许</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-M:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">允许匿名用户创建目录</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-n &lt;max files&gt;:&lt;max size&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">如果服务器被编译成支持虚拟配额，则该选项可以约束所有的用户（新任组的用户出外）。其中，最大的文件大小以</span>
				<span lang="EN-US">
						<font face="Courier New">M</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">为单位</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-N:NAT</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">模式，强制</span>
				<span lang="EN-US">
						<font face="Courier New">Active</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。当</span>
				<span lang="EN-US">
						<font face="Courier New">ftp</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">服务器位于</span>
				<span lang="EN-US">
						<font face="Courier New">NAT</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">、伪装网关或者路由器后面时，如果无法正常访问，可以采用此选项。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-o:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">将所有上传的文件写入</span>
				<span lang="EN-US">
						<font face="Courier New">’/var/run/pure-ftpd.upload.pipe’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">，使得</span>
				<span lang="EN-US">
						<font face="Courier New">’pure-uploadscipte’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">程序可以运行。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-O &lt;format&gt;:&lt;log file&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">以指定格式将文件传输记入日志文件中。目前支持的格式包括：</span>
				<span lang="EN-US">
						<font face="Courier New">CLF</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">、</span>
				<span lang="EN-US">
						<font face="Courier New">Stats</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">、</span>
				<span lang="EN-US">
						<font face="Courier New">W<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /?><st1:chmetcnv w:st="on" unitname="C" sourcevalue="3" hasspace="False" negative="False" numbertype="1" tcsc="0">3C</st1:chmetcnv></font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">和</span>
				<span lang="EN-US">
						<font face="Courier New">xferlog</font>
				</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-p &lt;first port&gt;:&lt;last port&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">包括被动模式在内，服务器只会选择从开始到结束的端口进行监听。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-P &lt;ip address or host name&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">对</span>
				<span lang="EN-US">
						<font face="Courier New">PASV</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">、</span>
				<span lang="EN-US">
						<font face="Courier New">EPSV</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">和</span>
				<span lang="EN-US">
						<font face="Courier New">SPSV</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">命令的相应，强制以指定的</span>
				<span lang="EN-US">
						<font face="Courier New">IP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">地址或</span>
				<span lang="EN-US">
						<font face="Courier New">hostname</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">相应。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-q &lt;upload ratio&gt;:&lt;download ratio&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">为匿名用户指定上传和下载</span>
				<span lang="EN-US">
						<font face="Courier New">ration</font>
				</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-Q &lt;upload ratio&gt;:&lt;download ratio&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">为除了</span>
				<span lang="EN-US">
						<font face="Courier New">root</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">组的用户外的所有人指定上传和下载</span>
				<span lang="EN-US">
						<font face="Courier New">ratio</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。</span>
				<span lang="EN-US">
						<font face="Courier New">root</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">组的用户没有</span>
				<span lang="EN-US">
						<font face="Courier New">ratio</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">限制</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-r:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">永远不覆盖已经存在的文件。这是，上传一个已经存在的文件时，会自动为其重命名，入：</span>
				<span lang="EN-US">
						<font face="Courier New">xyz</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">、</span>
				<span lang="EN-US">
						<font face="Courier New">xyz.1</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">、</span>
				<span lang="EN-US">
						<font face="Courier New">xyz.2</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。如果编译时使用</span>
				<span lang="EN-US">
						<font face="Courier New">” make AUTORENAME_REVERSE_ORDER=<st1:chmetcnv w:st="on" unitname="”" sourcevalue="1" hasspace="False" negative="False" numbertype="1" tcsc="0">1”</st1:chmetcnv></font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">，则重命名的文件是</span>
				<span lang="EN-US">
						<font face="Courier New">1.xyz</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">、</span>
				<span lang="EN-US">
						<font face="Courier New">2.xyz</font>
				</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-R:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">即使是非匿名用户（除了</span>
				<span lang="EN-US">
						<font face="Courier New">root</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">之外），也不允许使用</span>
				<span lang="EN-US">
						<font face="Courier New">chmod</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">命令</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-s:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">不允许匿名用户下载属主是</span>
				<span lang="EN-US">
						<font face="Courier New">ftp</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">的文件（其它匿名用户上传的文件）。这样可以保证必须经过管理员的修改，这些文件才能被匿名用户下载。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-S<span style="mso-tab-count: 1">  </span></font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">绑定到指定的地址和端口。例：</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd">
				<span lang="EN-US">/usr/local/sbin/pure-ftpd -S 21</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd">
				<span lang="EN-US">/usr/local/sbin/pure-ftpd -S 192.168.0.1</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd">
				<span lang="EN-US">/usr/local/sbin/pure-ftpd -S 192.168.0.1,21</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 42pt; mso-para-margin-left: 4.0gd">
				<span lang="EN-US">/usr/local/sbin/pure-ftpd -S mci.uestc.edu.cn,21</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-t &lt;bandwidth&gt;</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">和</span>
				<span lang="EN-US">
						<font face="Courier New">-T &lt;bandwidth&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">带宽限制。</span>
				<span lang="EN-US">
						<font face="Courier New">&lt;bandwidth&gt;</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">是以</span>
				<span lang="EN-US">
						<font face="Courier New">k/s</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">为单位，同时可以指定上传和下载的带宽，支持</span>
				<span lang="EN-US">
						<font face="Courier New">[&lt;upload&gt;]:[&lt;download&gt;]</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">语法</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-u &lt;uid&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">禁止</span>
				<span lang="EN-US">
						<font face="Courier New">uid</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">小于</span>
				<span lang="EN-US">
						<font face="Courier New">&lt;uid&gt;</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">的用户登陆。</span>
				<span lang="EN-US">
						<font face="Courier New">-u 1</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">可以禁止</span>
				<span lang="EN-US">
						<font face="Courier New">root</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">用户登陆，</span>
				<span lang="EN-US">
						<font face="Courier New">-u 100</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">可以禁止绝大多数系统虚拟用户登陆。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-U &lt;umask for files&gt;:&lt;umask for dirs&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">改变默认的掩码，默认的是</span>
				<span lang="EN-US">
						<font face="Courier New">133:022</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。如果希望上传的文件只能被上传该文件的用户读，使用</span>
				<span lang="EN-US">
						<font face="Courier New">’-U 177:<st1:chmetcnv w:st="on" unitname="’" sourcevalue="77" hasspace="False" negative="False" numbertype="1" tcsc="0">077’</st1:chmetcnv></font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">。如果希望上传的文件可以被执行，使用</span>
				<span lang="EN-US">
						<font face="Courier New">022:022</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">（文件可以被其它用户读，但是不能写）。</span>
				<span lang="EN-US">
						<font face="Courier New">077:077</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">文件只能被所有者执行或者读。</span>
				<span lang="EN-US">
						<font face="Courier New">Pure-ftpd</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">支持</span>
				<span lang="EN-US">
						<font face="Courier New">SITE CHMOD</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">，使得用户可以被改变自己文件的属性。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-V &lt;ip address&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">只允许在指定地址的非匿名的</span>
				<span lang="EN-US">
						<font face="Courier New">FTP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">访问。这时，可以将公网</span>
				<span lang="EN-US">
						<font face="Courier New">IP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">路由到一个指定的内网</span>
				<span lang="EN-US">
						<font face="Courier New">IP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">地址，或者将新任的</span>
				<span lang="EN-US">
						<font face="Courier New">IP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">地址路由到指定的内网</span>
				<span lang="EN-US">
						<font face="Courier New">IP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">地址。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-v &lt;name&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">支持苹果的</span>
				<span lang="EN-US">
						<font face="Courier New">Bonjor</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">，只有当</span>
				<span lang="EN-US">
						<font face="Courier New">Bonjor</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">选择在编译的时候支持是，苹果的</span>
				<span lang="EN-US">
						<font face="Courier New">MacOS X</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">才能有此属性。</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-w:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">只对认证的用户支持</span>
				<span lang="EN-US">
						<font face="Courier New">FXP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">协议</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-W:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">支持</span>
				<span lang="EN-US">
						<font face="Courier New">FXP</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">协议</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-x:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">默认时，非匿名用户可以读和写以</span>
				<span lang="EN-US">
						<font face="Courier New">’.’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">开头的隐藏文件，而匿名用户则不可以。当该选项指定时，用户只能下载这些文件，但是不能覆盖和创建，即使该用户时是该文件的属主。如果希望是用户可以访问特定的以</span>
				<span lang="EN-US">
						<font face="Courier New">’.’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">开头的文件，可以通过建立该文件的链接（非</span>
				<span lang="EN-US">
						<font face="Courier New">’.’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">开头的文件名）达到目的</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-X:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">用户除了不能写以</span>
				<span lang="EN-US">
						<font face="Courier New">’.’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">开头的文件，如果使用了该选项，用户不能读这样的文件，也不能进入这样的目录。（当以</span>
				<span lang="EN-US">
						<font face="Courier New">’-a’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">参数启动，受信的用户可以绕开</span>
				<span lang="EN-US">
						<font face="Courier New">’-x’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">和</span>
				<span lang="EN-US">
						<font face="Courier New">’-X’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">的限制）</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-y &lt;max user logins&gt;:&lt;max anonymous logins&gt;:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">如果编译时加入了</span>
				<span lang="EN-US">
						<font face="Courier New">--with-peruserlimits</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">选项，该选项限制了同一个用户可以同时拥有的</span>
				<span lang="EN-US">
						<font face="Courier New">session</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">数目。空值</span>
				<span lang="EN-US">
						<font face="Courier New">’<st1:chmetcnv w:st="on" unitname="’" sourcevalue="0" hasspace="False" negative="False" numbertype="1" tcsc="0">0’</st1:chmetcnv></font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">意味着没有限制</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-z:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">允许匿名用户读以</span>
				<span lang="EN-US">
						<font face="Courier New">’.’</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">开头的文件和目录</span>
		</p>
		<p class="a" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<font face="Courier New">-Z:</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">避免用户犯简单的错误。当前，该选项可以避免用户错误的使用</span>
				<span lang="EN-US">
						<font face="Courier New">chmod</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">命令，防止他们不能访问自己的文件或者目录。该选项在将来还会有更多的功能。所以，推荐</span>
				<span lang="EN-US">
						<font face="Courier New">host</font>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">服务器打开该参数</span>
		</p><img src ="http://www.blogjava.net/sk8boy/aggbug/40311.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2006-04-10 19:39 <a href="http://www.blogjava.net/sk8boy/articles/40311.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>RedHat下服务的启动配置</title><link>http://www.blogjava.net/sk8boy/articles/37924.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Tue, 28 Mar 2006 15:01:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/37924.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/37924.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/37924.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/37924.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/37924.html</trackback:ping><description><![CDATA[<p class="a0" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在</span>
				<font face="宋体">
						<span lang="EN-US">RedHat</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下，发现有三个命令可以用来配置系统服务的启动，分别是：</span>
				</font>
		</p>
		<p class="a0" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-char-indent-count: 0; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
				</span>
				<span lang="EN-US">
						<font face="宋体">ntsysv</font>
				</span>
		</p>
		<p class="a0" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-char-indent-count: 0; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
				</span>
				<span lang="EN-US">
						<font face="宋体">chkconfig</font>
				</span>
		</p>
		<p class="a0" style="MARGIN: 0cm 0cm 0pt 42pt; TEXT-INDENT: -21pt; mso-char-indent-count: 0; mso-list: l0 level1 lfo1; tab-stops: list 42.0pt">
				<span lang="EN-US" style="FONT-FAMILY: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">         </span></span>
				</span>
				<span lang="EN-US">
						<font face="宋体">serviceconf</font>
				</span>
		</p>
		<p class="a0" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 0cm; mso-char-indent-count: 0">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">其中，</span>
				<font face="宋体">
						<span lang="EN-US">serviceconf</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是在</span>
						<span lang="EN-US">X</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下面的图形化的配置，很方便，就不作过多的介绍。剩下的两个都是可以在终端启动的。其中，</span>
						<span lang="EN-US">ntsysv</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是终端下面的图形化配置程序，默认是用来配置当前运行级别的启动服务。但是可以通过在后面加入参数</span>
						<span lang="EN-US">--level xxx</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来指定修改所影响的运行级别。其中</span>
						<span lang="EN-US">“xxx”</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示运行级别的数字，从</span>
						<span lang="EN-US">0</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">到</span>
						<span lang="EN-US">9</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，不加任何空格。如：</span>
				</font>
		</p>
		<div style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 4pt; BACKGROUND: #bad4ff; PADDING-BOTTOM: 1pt; MARGIN-LEFT: 17.85pt; BORDER-LEFT: windowtext 1pt solid; MARGIN-RIGHT: 0cm; PADDING-TOP: 1pt; BORDER-BOTTOM: windowtext 1pt solid; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">
				<p class="a" style="BACKGROUND: #bad4ff; MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">
								<font face="Courier New" size="2">ntsysv --level 345</font>
						</span>
				</p>
		</div>
		<p class="a0" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 0cm; mso-char-indent-count: 0">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表示要对运行在</span>
				<font face="宋体">
						<span lang="EN-US">3</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、</span>
						<span lang="EN-US">4</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</span>
						<span lang="EN-US">5</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">级的相应服务的启动配置作修改。启动之后，就简单的选择希望在指定级别下自动启动的服务了。</span>
				</font>
		</p>
		<p class="a0" style="MARGIN: 0cm 0cm 0pt">
				<font face="宋体">
						<span lang="EN-US">chkconfig</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">可以用来列出、添加和删除系统服务的信息。这里需要特别指出的是，当我们向系统中添加一个服务时，如</span>
						<span lang="EN-US">Mysql Server</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，如果不是</span>
						<span lang="EN-US">RPM</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">安装，需要手动进行启动。这时，我们可以将</span>
						<span lang="EN-US">MySQL</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的启动脚本，可能是</span>
						<span lang="EN-US">mysql.server</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">拷贝到</span>
						<span lang="EN-US">/etc/init.d/</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">目录下。根据喜好，也可以将其更名为</span>
						<span lang="EN-US">mysqld</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。这样比较符合系统的命名习惯。这时，为了使该服务可以在系统启动的时候自动运行，可以采用如下命令来添加：</span>
				</font>
		</p>
		<div style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 4pt; BACKGROUND: #bad4ff; PADDING-BOTTOM: 1pt; MARGIN-LEFT: 17.85pt; BORDER-LEFT: windowtext 1pt solid; MARGIN-RIGHT: 0cm; PADDING-TOP: 1pt; BORDER-BOTTOM: windowtext 1pt solid; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt">
				<p class="a" style="BACKGROUND: #bad4ff; MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">
								<font face="Courier New" size="2">chkconfig –add mysqld on</font>
						</span>
				</p>
		</div>
		<p>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">默认情况下，参数</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">on</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">、</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">off</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">和</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">reset</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">只影响</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">2</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">、</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">3</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">、</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">4</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">和</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">5</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">级的系统启动信息。如果需要特殊定制，可以使用参数</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">--level</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">对其进行指定。方式跟</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">ntsysv</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">的</span>
				<span lang="EN-US" style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">--level</span>
				<span style="FONT-SIZE: 10.5pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-hansi-font-family: 'Times New Roman'">参数一致。</span>
		</p><img src ="http://www.blogjava.net/sk8boy/aggbug/37924.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2006-03-28 23:01 <a href="http://www.blogjava.net/sk8boy/articles/37924.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Under /etc: A Simple Guide</title><link>http://www.blogjava.net/sk8boy/articles/17404.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Sat, 29 Oct 2005 23:55:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/17404.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/17404.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/17404.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/17404.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/17404.html</trackback:ping><description><![CDATA[If you're new to Linux or know someone who is, here's an explanation of what's in the /etc subdirectory. 
<DIV class=article lang=en>
<DIV class=simplesect lang=en>
<DIV class=titlepage>
<H2 class=title><A name=N0x850ca10.0x8573900></A></H2></DIV>
<P>Newcomers to Linux, especially those coming from a Windows background, often find files in the /etc directory to be difficult to understand. In this article, I provide a brief explanation of some of these files and their uses. Before we dive into the /etc directory however, I would like to point out that changes to some of these files can render your system unstable or in some circumstances unbootable. I cannot emphasize enough that you should make a backup of these files before making any changes.</P>
<P>Let's dive in:</P>
<P><SPAN class=bold><B>/etc/exports</B></SPAN>: this file contains the partition configuration to load NFS (network filesystem). It states how partitions are mounted and shared with other Linux/UNIX systems.</P>
<P><SPAN class=bold><B>/etc/ftpusers</B></SPAN>: this file contains the login names of users who are not allowed to log in by way of FTP. For security reasons, it is recommended to add the root user to this file.</P>
<P><SPAN class=bold><B>/etc/fstab</B></SPAN>: this file automatically mounts filesystems that are spread across multiple drives or separate partitions. This file is checked when the system boots and filesystems are mounted.</P>
<P><SPAN class=bold><B>/etc/hosts.[allow, deny]</B></SPAN>: you can control access to your network by using these files. Adds hosts that you want to grant access to your network to the hosts.allow file; add hosts that you want to deny access to hosts.deny.</P>
<P><SPAN class=bold><B>/etc/inetd.conf or /etc/xinetd.conf</B></SPAN>: the inetd file can be called the father of networking services. This file is responsible for starting services such as FTP, telnet and the like. Some Linux distributions come with xinetd.conf, which stands for extended Internet services daemon. This file provides all the functionalities and capabilities of inetd but extends them further.</P>
<P>It is advisable to comment out services you do not use.</P>
<P><SPAN class=bold><B>/etc/inittab</B></SPAN>: this file describes what takes place or which processes are started at bootup or at different runlevels. A runlevel is defined as the state in which the Linux box currently is in. Linux has seven runlevels, from 0-6.</P>
<P><SPAN class=bold><B>/etc/motd</B></SPAN>: motd stands for message of the day. This file is executed and its contents displayed after a successful login.</P>
<P><SPAN class=bold><B>/etc/passwd</B></SPAN>: this file contains user information. Whenever a new user is added, an entry is added to this file containing the user's login name, password and so on. This file is readable by everyone on the system. If the password field contains "x", then encrypted passwords are stored in /etc/shadow, a file that is accessible only by the root user.</P>
<P><SPAN class=bold><B>/etc/profile</B></SPAN>: when a user logs in, a number of configuration files are executed, including /etc/profile. This file contains settings and global startup information for the bash shell.</P>
<P><SPAN class=bold><B>/etc/services</B></SPAN>: this file works in conjunction with /etc/inetd.conf or /etc/xinetd.conf files (see above). This file determines which port a service mentioned in inetd.conf is to use, for example, FTP/21, TELNET/23 and so on.</P>
<P><SPAN class=bold><B>/etc/securetty</B></SPAN>: this file lists TTYs from which root is allowed to log in. For security reasons it is recommended to keep only tty1 for root login.</P>
<P><SPAN class=bold><B>/etc/shells</B></SPAN>: this file contains the names of all the shells installed on the system, along with their full path names.</P>
<P>I hope you enjoyed this article and hope it helped in your understanding the /etc directory. You might find other subdirectories beneath the /etc directory that are application specific. /etc/httpd and /etc/sendmail, for example, are for Apache and sendmail, respectively.</P>
<P>Copyright (c) 2003, AmirAli Lalji. Originally published in Linux Gazette issue 94. Copyright (c) 2003, Specialized Systems Consultants, Inc.</P></DIV></DIV>
<P>AmirAli Lalji is a system administrator/DBA who lives and works in the UK and Portugal.</P><img src ="http://www.blogjava.net/sk8boy/aggbug/17404.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2005-10-30 07:55 <a href="http://www.blogjava.net/sk8boy/articles/17404.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux目录结构简析（转载）</title><link>http://www.blogjava.net/sk8boy/articles/17403.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Sat, 29 Oct 2005 23:54:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/17403.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/17403.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/17403.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/17403.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/17403.html</trackback:ping><description><![CDATA[<STRONG><FONT size=5>
<P>Linux继承了unix操作系统结构清晰的特点。在linux下的文件结构非常有条理。但是，上述的优点只有在对linux相当熟悉时，才能体会到。现在，虫虫就把linux下的目录结构简单介绍一下。 
<P>/vmlinuz <BR>　　我们已经知道，每一个linux都有一个内核（vmlinuz），我们在这个内核上添加上可以完成各种特定功能的模块，每个模块就体现在 linux中各种不同的目录上。当然，各种不同的发行套件，其目录有细小的差别，但主要结构都是一样的。我们还要将linux的功能模块和各种应用程序结合起来，这样，才能使你的 linux系统为你服务。在/vmlinuz目录下存放的就是系统的内核。还记得我们在配置lilo时，提到过这个内核吗？ 
<P>/bin <BR>　　显而易见，bin 就是二进制（binary）英文缩写。在一般的系统当中，你都可以在这个目录下找到linux常用的命令。在有的版本中你还会找到一些和根目录下相同的目录。 
<P>/boot <BR>　　在这个目录下存放的都是系统启动时要用到的程序。我们在使用lilo引导linux的时候，会用到这里的一些信息。 
<P>/dev <BR>　　dev 是设备(device)的英文缩写。这个目录对所有的用户都十分重要。因为在这个目录中包含了所有linux系统中使用的外部设备。但是这里并不是放的外部设备的驱动程序。这一点和我们常用的windows, dos操作系统不一样。它实际上是一个访问这些外部设备的端口。我们可以非常方便地去访问这些外部设备，和访问一个文件，一个目录没有任何区别。 例如：我们在系统中键入：cd /dev/cdrom 我们就可以看到光驱中的文件了。同样道理，我们键入：cd /dev/mouse 就可以看看鼠标的相关文件。在这个目录下，有一个null设备，这个东西本身没有任何意义。如果你向这个目录写入文件或内容，他们统统有去无回。 
<P>/cdrom <BR>　　这个目录在你刚刚安装系统的时候是空的。你可以将光驱文件系统挂在这个目录下。例如：mount /dev/cdrom /cdrom 
<P>/etc <BR>　　etc这个目录是linux系统中最重要的目录之一。在这个目录下存放了系统管理时要用到的各种配置文件和子目录。我们要用到的网络配置文件，文件系统，x系统配置文件，设备配置信息，设置用户信息等都在这个目录下。以后，虫虫还会详细讲解这个目录下的内容。 
<P>/sbin <BR>　　这个目录是用来存放系统管理员的系统管理程序。 
<P>/home <BR>　　如果我们建立一个用户，用户名是"xx",那么在/home目录下就有一个对应的/home/xx路径，用来存放用户的主目录。 
<P>/lib <BR>　　lib是库（library）英文缩写。这个目录是用来存放系统动态连接共享库的。几乎所有的应用程序都会用到这个目录下的共享库。因此，千万不要轻易对这个目录进行什么操作，一旦发生问题，你的系统就不能工作了，到时候你别说虫虫没有提醒你呀。 
<P>/lost+found <BR>　　这个目录在大多数情况下都是空的。但是如果你正在工作突然停电，或是没有用正常方式关机，在你重新启动机器的时候，有些文件就会找不到应该存放的地方，对于这些文件，系统将他们放在这个目录下，就象为无家可归的人提供一个临时住所。 
<P>/mnt <BR>　　这个目录在一般情况下也是空的。你可以临时将别的文件系统挂在这个目录下。 
<P>/proc <BR>　　可以在这个目录下获取系统信息。这些信息是在内存中，由系统自己产生的。 
<P>/root <BR>　　如果你是以超级用户的身份登录的，这个就是超级用户的主目录。 
<P>/tmp <BR>　　用来存放不同程序执行时产生的临时文件。 
<P>/usr <BR>　　这是linux系统中占用硬盘空间最大的目录。用户的很多应用程序和文件都存放在这个目录下。</P></FONT></STRONG><img src ="http://www.blogjava.net/sk8boy/aggbug/17403.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2005-10-30 07:54 <a href="http://www.blogjava.net/sk8boy/articles/17403.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>挖Linux中的古老缩略语（转载）</title><link>http://www.blogjava.net/sk8boy/articles/17399.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Sat, 29 Oct 2005 16:17:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/17399.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/17399.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/17399.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/17399.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/17399.html</trackback:ping><description><![CDATA[Unix已经有35年历史了。许多人认为它开始于<A class=bluekey href="http://www.yesky.com/key/3708/263708.html" target=_blank>中世纪</A>，这个中世纪是相对于计算机技术的产生和发展来说的。在过去的时间里，Unix和它的子分支Linux收集有许多的历史和一些完全古老的语言。在这篇技巧文章中，我们将介绍一少部分古老的语言和它们的目的和作用，以及它们真正的来源。
<P>　　<STRONG>RC</STRONG></P>
<P>　　在Linux中，最为常用的缩略语也许是“rc”，它是“runcomm”的缩写――即名词“run command”(运行命令)的简写。今天，“rc”是任何脚本类文件的后缀，这些脚本通常在程序的启动阶段被调用，通常是Linux系统启动时。如/etc/rs是Linux启动的主脚本，而.bashrc是当Linux的bash shell启动后所运行的脚本。.bashrc的前缀“.”是一个命名标准，它被设计用来在用户文件中隐藏那些用户指定的特殊文件;“ls”命令默认情况下不会列出此类文件，“rm”默认情况下也不会删除它们。许多程序在启动时，都需要“rc”后缀的初始文件或配置文件，这对于Unix的文件系统视图来说，没有什么神秘的。</P>
<P><STRONG>　　ETC</STRONG></P>
<P>　　在“etc/bin”中的“etc”真正代表的是“etcetera”(附加物)。在早期的Unix系统中，最为重要的目录是“bin”目录(“bin”是“binaries”二进制文件――编译后的程序的缩写)，“etc”中则包含琐碎的程序，如启动、关机和管理。运行一个Linux必须的东西的列表是:一个二进制程序，etcetera，etcetera――换句话说，是一个底层的重要项目，通常添加一些次等重要的零碎事物。今天，“etc”包含了广泛的<A class=bluekey href="http://www.yesky.com/key/3031/253031.html" target=_blank>系统配置文件</A>，这些配置文件几乎包含了系统配置的方方面面，同样非常重要。</P>
<P><STRONG>　　Bin</STRONG></P>
<P>　　今天，许多在Linux上运行的大型子系统，如GNOME或Oracle，所编译成的程序使用它们自己的“bin”目录(或者是/usr/bin，或者是/usr/local/bin)作为标准的存放地。同样，现在也能够在这些目录看到脚本文件，因为“bin”目录通常添加到用户的PATH路径中，这样他们才能够正常的使用程序。因此运行脚本通常在bin中运行良好。</P>
<P><STRONG>　　TTY</STRONG></P>
<P>　　在Linux中，TTY也许是跟终端有关系的最为混乱的术语。TTY是TeleTYpe的一个老缩写。Teletypes，或者teletypewriters，原来指的是电传打字机，是通过串行线用打印机键盘通过阅读和发送信息的东西，和古老的电报机区别并不是很大。之后，当计算机只能以批处理方式运行时(当时穿孔<A class=bluekey href="http://www.yesky.com/key/4271/249271.html" target=_blank>卡片</A>阅读器是唯一一种使程序载入运行的方式)，电传打字机成为唯一能够被使用的“实时”输入/输出设备。最终，电传打字机被键盘和显示器终端所取代，但在终端或TTY接插的地方，操作系统仍然需要一个程序来监视串行端口。一个getty“Get TTY”的处理过程是:一个程序监视物理的TTY/终端接口。对一个<A class=bluekey href="http://www.yesky.com/key/634/634.html" target=_blank>虚拟网络</A>沮丧服务器(VNC)来说，一个伪装的TTY(Pseudo-TTY，即<A class=bluekey href="http://www.yesky.com/key/3117/198117.html" target=_blank>家猫</A>的TTY，也叫做“PTY”)是等价的终端。当你运行一个xterm(终端仿真程序)或GNOME终端程序时，PTY对虚拟的用户或者如xterm一样的伪终端来说，就像是一个TTY在运行。“Pseudo”的意思是“duplicating in a fake way”(用伪造的方法复制)，它相比“virtual”或“emulated”更能真实的说明问题。而在现在的计算中，它却处于被放弃的阶段。</P>
<P><STRONG>　　Dev</STRONG></P>
<P>　　从TTY留下的命令有“stty”，是“set tty”(设置TTY)的缩写，它能够生成一个配置文件/etc/initab(“initialization table”，初始表)，以配置gettys使用哪一个串口。在现代，直接附加在Linux窗口上的唯一终端通常是控制台，由于它是特殊的TTY，因此被命名为“console”。当然，一旦你启动X11，“console”TTY就会消失，再也不能使用串口协议。所有的TTY都被储存在“/dev”目录，它是“[physical] devices”([物理]设备)的缩写。以前，你必须在电脑后面的串口中接入一个新的终端时，手工修改和配置每一个设备文件。现在，Linux(和Unix)在安装过程中就在此目录中创建了它所能向导的每一个设备的文件。这就是说，你很少需要自己创建它。</P>
<P>　　随着硬件在电脑中的移出移进，这些名字将变得更加模糊不清。幸运的是，今天在Linux上的高等级软件块对历史和硬件使用容易理解的名字。举例来说，嗯，Pango(http://www.pango.org/)就是其中之一。</P>
<P>　　如果你对这些内容很感兴趣，那么我建议你阅读宏大的，但有些以美国英语历史为中心的，由Eric S. Raymond撰写的Jargon File。它并没有解释所有在Unix中使用的术语，但是它给出了这些形成的大致情况。</P></A><img src ="http://www.blogjava.net/sk8boy/aggbug/17399.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2005-10-30 00:17 <a href="http://www.blogjava.net/sk8boy/articles/17399.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CVS的安装配置</title><link>http://www.blogjava.net/sk8boy/articles/15649.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Sun, 16 Oct 2005 08:34:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/15649.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/15649.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/15649.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/15649.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/15649.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 1 准备在安装之前，首先通过运行下面命令查看系统上是否已经安装了CVS：root# rpm –q cvs这是我系统上输出的内容：cvs-1.11.19-8说明系统上已经安装了CVS，要卸载再安装新的版本或者重新安装。可以输入如下命令进行卸载：root# rpm –e cvs这时系统输出如下提示：warning: /etc/xinetd.d/cvs s...&nbsp;&nbsp;<a href='http://www.blogjava.net/sk8boy/articles/15649.html'>阅读全文</a><img src ="http://www.blogjava.net/sk8boy/aggbug/15649.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2005-10-16 16:34 <a href="http://www.blogjava.net/sk8boy/articles/15649.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>RPM 大全 [转载 由 liuqing9906 提供]</title><link>http://www.blogjava.net/sk8boy/articles/14574.html</link><dc:creator>思考</dc:creator><author>思考</author><pubDate>Sat, 01 Oct 2005 01:42:00 GMT</pubDate><guid>http://www.blogjava.net/sk8boy/articles/14574.html</guid><wfw:comment>http://www.blogjava.net/sk8boy/comments/14574.html</wfw:comment><comments>http://www.blogjava.net/sk8boy/articles/14574.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/sk8boy/comments/commentRss/14574.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/sk8boy/services/trackbacks/14574.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: RPM 有五种基本的操作方式（不包括创建软件包）：安装，卸载，升级，查询和验证。 下面我们就来逐一的讲解吧。1 安装RPM包RPM 软件包通常具有类似foo-1.0-1.i386.rpm的文件名。其中包括软件包的名称（foo）、版本号（1.0）、发行号（1）和硬件平台（i386）。安装一个软件包只需简单的键入以下命令：$ rpm -ivh foo-1.0-1.i386.rpmf...&nbsp;&nbsp;<a href='http://www.blogjava.net/sk8boy/articles/14574.html'>阅读全文</a><img src ="http://www.blogjava.net/sk8boy/aggbug/14574.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/sk8boy/" target="_blank">思考</a> 2005-10-01 09:42 <a href="http://www.blogjava.net/sk8boy/articles/14574.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>