Translation

(itstool) path: sect2/para
To enable <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry> at boot time, add this line to <filename>/etc/rc.conf</filename>:
141/1660
Context English Chinese (Simplified) (zh_CN) State
There is a special automounter map mounted on <filename>/net</filename>. When a file is accessed within this directory, <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry> looks up the corresponding remote mount and automatically mounts it. For instance, an attempt to access a file within <filename>/net/foobar/usr</filename> would tell <citerefentry><refentrytitle>automountd</refentrytitle><manvolnum>8</manvolnum></citerefentry> to mount the <filename>/usr</filename> export from the host <systemitem class="fqdomainname">foobar</systemitem>.
在<filename>/net</filename>上挂载了一个特殊的自动加载器地图。当在此目录下访问文件时,<citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry>会查找相应的远程挂载点,并自动挂载。比如说。试图访问<filename>/net/foobar/usr</filename>中的文件,会告诉<citerefentry><refentrytitle>automountd</refentrytitle><manvolnum>8</manvolnum></citerefentry>从主机上挂载<filename>/usr</filename>导出的文件<systemitem class="fqdomainname">foobar</systemitem>。
Mounting an Export with <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry>
使用<citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry>挂载Export
In this example, <command>showmount -e</command> shows the exported file systems that can be mounted from the <acronym>NFS</acronym> server, <systemitem class="fqdomainname">foobar</systemitem>:
您可以通过使用 <command>showmount -e</command> 命令来查看 <acronym>NFS</acronym> 服务器上导出的文件系统。 例如, 要查看<systemitem class="fqdomainname">foobar</systemitem> 上导出的文件系统, 可以用:
<prompt>%</prompt> <userinput>showmount -e foobar</userinput>
Exports list on foobar:
/usr 10.10.10.0
/a 10.10.10.0
<prompt>%</prompt> <userinput>cd /net/foobar/usr</userinput>
<prompt>%</prompt> <userinput>showmount -e foobar</userinput>
Exports list on foobar:
/usr 10.10.10.0
/a 10.10.10.0
<prompt>%</prompt> <userinput>cd /net/foobar/usr</userinput>
The output from <command>showmount</command> shows <filename>/usr</filename> as an export. When changing directories to <filename>/host/foobar/usr</filename>, <citerefentry><refentrytitle>automountd</refentrytitle><manvolnum>8</manvolnum></citerefentry> intercepts the request and attempts to resolve the hostname <systemitem class="fqdomainname">foobar</systemitem>. If successful, <citerefentry><refentrytitle>automountd</refentrytitle><manvolnum>8</manvolnum></citerefentry> automatically mounts the source export.
<command>showmount</command>的输出显示<filename>/usr</filename>为导出路径。当将目录更改为<filename>/host/foobar/usr</filename>时,<citerefentry><refentrytitle>automountd</refentrytitle><manvolnum>8</manvolnum></citerefentry>会拦截该请求,并尝试解析hostname<systemitem class="fqdomainname">foobar</systemitem>。如果成功,<citerefentry><refentrytitle>automountd</refentrytitle><manvolnum>8</manvolnum></citerefentry>会自动挂载源导出。
To enable <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry> at boot time, add this line to <filename>/etc/rc.conf</filename>:
要在启动时启用 <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry>,请在 <filename>/etc/rc.conf</filename>中添加此行:
Then <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry> can be started by running:
然后 <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry> 可以使用以下命令启动:
<prompt>#</prompt> <userinput>service automount start</userinput>
<prompt>#</prompt> <userinput>service automountd start</userinput>
<prompt>#</prompt> <userinput>service autounmountd start</userinput>
<prompt>#</prompt> <userinput>service automount start</userinput>
<prompt>#</prompt> <userinput>service automountd start</userinput>
<prompt>#</prompt> <userinput>service autounmountd start</userinput>
The <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry> map format is the same as in other operating systems. Information about this format from other sources can be useful, like the <link xlink:href="http://web.archive.org/web/20160813071113/http://images.apple.com/business/docs/Autofs.pdf">Mac OS X document</link>.
<citerefentry> <refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry>映射格式与其他操作系统相同。有关其他来源的此格式的信息可能很有用,如<link xlink:href="http://web.archive.org/web/20160813071113/http://images.apple.com/business/docs/Autofs.pdf">Mac OS X document</link>。
Consult the <citerefentry><refentrytitle>automount</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>automountd</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>autounmountd</refentrytitle><manvolnum>8</manvolnum></citerefentry>, and <citerefentry><refentrytitle>auto_master</refentrytitle><manvolnum>5</manvolnum></citerefentry> manual pages for more information.
更多信息请参阅<citerefentry><refentrytitle>automount</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>automountd</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>autounmountd</refentrytitle><manvolnum>8</manvolnum></citerefentry>, 和 <citerefentry><refentrytitle>auto_master</refentrytitle><manvolnum>5</manvolnum></citerefentry>。
Network Information System (<acronym>NIS</acronym>)
网络信息系统(<acronym>NIS</acronym>)

Loading…

To enable <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry> at boot time, add this line to <filename>/etc/rc.conf</filename>:
要在启动时启用 <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></manvolnum></citerefentry>,请在 <filename>/etc/rc.conf</filename>中添加此行:
a month ago
To enable <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></citerefentry> at boot time, add this line to <filename>/etc/rc.conf</filename>:
要在启动时启用 <citerefentry><refentrytitle>autofs</refentrytitle><manvolnum>5</manvolnum></manvolnum></citerefentry>,请在 <filename>/etc/rc.conf</filename>中添加此行:
a month ago
Browse all component changes

Glossary

English Chinese (Simplified) (zh_CN)
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect2/para
Labels
No labels currently set.
Source string location
book.translate.xml:53897
Source string age
9 months ago
Translation file
books/zh_CN/handbook.po, string 8808