mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-10 13:04:42 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1938 af4574ff-66df-0310-9fd7-8a98e5e911e0
43 lines
1.6 KiB
XML
43 lines
1.6 KiB
XML
<sect2>
|
|
<title>Configuring nfs-utils</title>
|
|
|
|
<sect3><title>Server Configutation</title>
|
|
|
|
<para><filename>/etc/exports</filename> contains the exported directories on NFS servers.
|
|
Refer to the exports manual page for the syntax of this file. Also refer to the
|
|
NFS HowTo available at <ulink url="http://nfs.sourceforge.net/nfs-howto/"/> on how to
|
|
configure the servers and clients in a secure manner. For example, for sharing the
|
|
<filename>/home</filename> directory over the local network, the following line may
|
|
be added:</para>
|
|
|
|
<screen><userinput>/home 192.168.0.0/255.255.0.0(rw)</userinput></screen>
|
|
|
|
<para>Install the <filename>/etc/rc.d/init.d/nfs-server</filename>
|
|
init script included in the
|
|
<xref linkend="intro-important-bootscripts"/> package to start
|
|
the server at boot.</para>
|
|
|
|
<screen><userinput><command>make install-nfs-server</command></userinput></screen>
|
|
|
|
</sect3>
|
|
|
|
<sect3><title>Client Configutation</title>
|
|
|
|
<para><filename>/etc/fstab</filename> contains the directories that are to be mounted
|
|
on the client. Alternately the partitions can be mounted by using the
|
|
<command>mount</command> command with the proper options. To mount the <filename>/home</filename>
|
|
partition, add the following to the <filename>/etc/fstab</filename>:</para>
|
|
|
|
<screen><userinput><server-name>:/home /home nfs rw 0 0</userinput></screen>
|
|
|
|
<para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename>
|
|
init script included in the
|
|
<xref linkend="intro-important-bootscripts"/> package to
|
|
start the client services at boot.</para>
|
|
|
|
<screen><userinput><command>make install-nfs-client</command></userinput></screen>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|