System information

# servi ce nfs restart
The co nd restart (conditional restart) option only starts nfs if it is currently running. This option is
useful for scripts, because it does not start the daemon if it is not running. To conditionally restart the
server type:
# servi ce nfs co nd restart
To reload the NFS server configuration file without restarting the service type:
# servi ce nfs rel o ad
9.7. NFS Server Configurat ion
There are two ways to configure an NFS server:
Manually editing the NFS configuration file, that is, /etc/expo rts, and
through the command line, that is, by using the command expo rtfs
9.7.1. T he /etc/expo rts Configurat ion File
The /etc/expo rts file controls which file systems are exported to remote hosts and specifies
options. It follows the following syntax rules:
Blank lines are ignored.
To add a comment, start a line with the hash mark (#).
You can wrap long lines with a backslash (\).
Each exported file system should be on its own individual line.
Any lists of authorized hosts placed after an exported file system must be separated by space
characters.
Options for each of the hosts must be placed in parentheses directly after the host identifier,
without any spaces separating the host and the first parenthesis.
Each entry for an exported file system has the following structure:
export host(options)
The aforementioned structure uses the following variables:
export
The directory being exported
host
The host or network to which the export is being shared
options
The options to be used for host
Chapt er 9 . Net work File Syst em (NFS)
63