⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 777.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
        <TR>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=296 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=76 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=100 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=98 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=79 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=103 
          border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=26 
border=0></TD>
          <TD><IMG height=1 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR>
        <TR>
          <TD colSpan=3><A title=linux知识宝库 
            href="index.html" tppabs="http://www.linuxhero.com/docs/index.html"><IMG height=83 
            src="images/header_r1_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c1.gif" width=472 border=0 
            name=header_r1_c1></A></TD>
            <TD colSpan=3>
              <form action="http://www.linuxhero.com/docs/search.html" method=get>
                <table 
                        style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid" 
                        cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
                  <tbody> 
                  <tr> 
                    <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"> 
                      <div align=center><font class=normalfont>搜索文章: 
                        <input type=hidden value=result name=action2>
                          <input type=radio checked value=title name=type>标题 
                          <input type=radio value=content name=type>内容 
                          <input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
                        </font></div>
                    </td>
                  </tr>
                  <tr> 
                    <td noWrap> 
                      <div align="center"> 
                        <input maxlength=100 size=30 name=keyword2>
                      </div>
                    </td>
                  </tr></tbody> 
                </table>
              </form>
            </TD>
            <TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
          <TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
        <TR>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22 
            src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0 
            name=header_r2_c1></TD>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
              <DIV align=right><FONT class=normalfont>当前位置: 
              <A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
              <font color="#FF6699">&gt;&gt;</font>
<A href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</A>                 | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
            </TD>
          <TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff 
        border=0>
         <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
              
              <TR>
                <TD vAlign=top align=middle width="60%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                  background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
                    <TBODY>
                    <TR>
                        <TD vAlign=top width="80%"> 
                          <DIV align=center>
                        <FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
                            </FORM>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>使用nfs进行网络备份</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:Glenn Graham<br>来自:Linux知识宝库<br>联系方式:无名<br><br>  关于一个网络的unix主机的正确备份方法,系统管理员们存在很多的争论。有些
认为磁带就是答案,而其他一些人则倾向于更先进一些的方法,比如可重写的cdrom。
不管什么方法,他们的最终目标都是:备份网络主机,并能够方便地索引和恢复。<br>
  80年代末期,为节省开支,我决定使用一个闲置的服务器运行nfs,它有一个装载了
1/4英寸的dc6525磁带的500兆磁带机。方法很简单,同时它工作的也很好。我为每台主机
分配了三盘磁带,每星期进行三次循环备份。唯一的问题是磁带太笨重了,而且很多情况
下不可靠。dc6525的时代过去了,更贵、更复杂的设备取代了它们。<br>
  过去几年里,我开始更新我的24台主机的网络。在开始前, 我考虑了可写cdrom和其
他一些商业产品。在对比了海量存储设备的商业产品的开销后,    我断定建造一个运行
linux的中心nfs服务器更为经济。基于我的原始模式,我用两个运行raid的热插拔scsi硬
盘取代了磁带机。这样能进行实时备份,数据可移动,同时将来能方便的扩充。<br>
  本文中我将探讨nfs使用的一些很基本的方法。这些方法很多为你们所熟知, 但往往
被认为太复杂、太过时或者太难以实现而丢在一边。我们将仅仅接触nfs庞大冰山的一角。
由于nfs几乎是无限的可定制,这里的例子仅仅用来作为基本的指导。<br>
  一般而言,进行任何形式的备份都需要思考,计划,以及对文件、外设和每个主机任
务的深入了解。网络中任何两个备份方案都不尽相同。备份的核心包括/etc目录下的配置
文件,各种cron文件,以及各系统特定的二进制程序。服务器中,根据服务器任务的不同,
我们需要备份/var/mail,web目录,或者/var/db。<br>
  制定备份计划的第一步是,仔细检查目标系统,确定系统相关的文件,并记录下来。<br><br>
nfs基础
  在开始前,先介绍一些nfs的基本概念。nfs运行于udp上,在1989年三月由sun微系统
公司提出并定为rfc1094。多数人认为nfs不够安全,容易受到一系列漏洞的攻击,特别是
rpc portmapper的漏洞。除开安全性不谈, nfs仍然是公认的装载和备份远程文件系统的
方法,特别是在局域网上。也就是说,在公网上使用nfs时,理解防火墙技术相当重要。
你至少需要使用tcp wrapper或者在/etc/hosts.allow文件中提供可信赖名单。 永远不要
毫无保护的使用nfs,并且总是在没有使用时杀掉mountd和rcp.portmap进程。<br>
  nfs的运作原理是远程装载,在每个主机上运行unix的portmapper和mountd(处理nfs
装载请求的服务器)守护进程。/etc/exports控制对服务器的访问,它包含一个授权主机
的清单,以及用户权限和允许的目录。<br><br>
下面是mountd帮助手册的一段话:<br>
  当mountd启动时,会使用mount系统调用将输出主机的地址和配置载入到内核中。 一
旦更改exports文件,应当向mountd进程发送挂起信号,以使其重新载入配置信息。 在发
送SIGHUP信号后,应检查syslog确认mountd没有在exports文件中发现语法错误。如果
mountd发现内核不支持nfs,将试图装载包含nfs程序的lkm。<br>
  大部分bsd内核缺省时内置了nfs支持并可以在/etc/rc.conf中配置, 而linux则需要
可加载模块或者重新编译内核。<br><br>
nfs备份原理<br>
  nfs备份方法相对来说很简单:将所有主机装载到nfs服务器上,编写一个.tar备份脚
本,并检查所有机器的下列权限设定是否一致:1、读写存取 2、装载权限 3、 GID/UID<br><br>
输出和权限:<br>
  /etc/exports文件包括了nfs服务器的各个选项。在下面的例子中, jack.foo.com将

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -