NFS的注意事项

exports - NFS server export table

        /               master(rw) trusty(rw,no_root_squash)
       /projects       proj*.local.domain(rw)
       /usr            *.local.domain(ro) @trusted(rw)
       /home/joe       pc001(rw,all_squash,anonuid=150,anongid=100)
       /pub            *(ro,insecure,all_squash)
       /srv/www        -sync,rw server @trusted @external(ro)
       /foo            2001:db8:9:e54::/64(rw) 192.0.2.0/24(rw)
       /build          buildhost[0-9].local.domain(rw)

       The first line exports the entire filesystem to machines master  and  trusty.
       In addition to write access, all uid squashing is turned off for host trusty.
       The second and third entry show examples for wildcard hostnames and netgroups
       (this  is  the  entry  `@trusted').  The  fourth line shows the entry for the
       PC/NFS client discussed above. Line 5 exports the  public  FTP  directory  to
       every host in the world, executing all requests under the nobody account. The
       insecure option in this entry also allows clients  with  NFS  implementations
       that  don't  use a reserved port for NFS.  The sixth line exports a directory
       read-write to the machine 'server' as well as the  `@trusted'  netgroup,  and
       read-only  to  netgroup  `@external', all three mounts with the `sync' option
       enabled. The seventh line exports a directory to both an  IPv6  and  an  IPv4
       subnet. The eighth line demonstrates a character class wildcard match.

   exportfs - 管理NFS共享文件系统列表

<pre><b>选项</b> <b>(OPTIONS)</b>
<b>-a</b> 打开或取消所有目录共享。

<b>-o</b> <u style="text-decoration-style:single">options,...</u>
指定一列共享选项,与 <b>exports(5)</b> 中讲到的类似。

<b>-i</b> 忽略 <b>/etc/exports</b> 文件,从而只使用默认的和命令行指定的选项。

<b>-r</b> 重新共享所有目录。它使 /var/lib/nfs/xtab 和 /etc/exports 同步。 它将
/etc/exports 中已删除的条目从 /var/lib/nfs/xtab
中删除,将内核共享表中任何不再有效的条目移除。

<b>-u</b> 取消一个或多个目录的共享。

<b>-f</b> 在“新”模式下,刷新内核共享表之外的任何东西。
任何活动的客户程序将在它们的下次请求中得到 <b>mountd</b> 添加的新的共享条目。

<b>-v</b> 输出详细信息。当共享或者取消共享时,显示在做什么。
显示当前共享列表的时候,同时显示共享的选项。
</pre>

上一篇:深入理解line-height和vertical-align


下一篇:【R语言】实验五 综合应用