Nfs Server Configuration; The /Etc/Exports Configuration File - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

/sbin/service nfs stop
The
option is a shorthand way of stopping and then starting NFS. This is the most
restart
efficient way to make configuration changes take effect after editing the configuration file for
NFS.
To restart the server, as root, type:
/sbin/service nfs restart
The
(conditional restart) option only starts
condrestart
is useful for scripts, because it does not start the daemon if it is not running.
To conditionally restart the server, as root, type:
/sbin/service nfs condrestart
To reload the NFS server configuration file without restarting the service, as root, type:
/sbin/service nfs reload
By default, the
service does not start automatically at boot time. To configure the NFS to
nfs
start up at boot time, use an initscript utility, such as
the Services Configuration Tool program. Refer to the chapter titled Controlling Access to
Services in the Red Hat Enterprise Linux System Administration Guide for more information
regarding these tools.

3. NFS Server Configuration

There are three ways to configure an NFS server under Red Hat Enterprise Linux: using the
NFS Server Configuration Tool (
(
), or using the
/etc/exports
For instructions on using NFS Server Configuration Tool, refer to the chapter titled Network
File System (NFS) in the Red Hat Enterprise Linux System Administration Guide. The
remainder of this section discusses manually editing
/usr/sbin/exportfs
3.1. The
/etc/exports
The
file controls which file systems are exported to remote hosts and specifies
/etc/exports
options. Blank lines are ignored, comments can be made by starting a line with the hash mark
(
), and long lines can be wrapped with a backslash (
#
its own individual line, and any lists of authorized hosts placed after an exported file system
system-config-nfs
/usr/sbin/exportfs
command to export NFS file systems.
Configuration File
NFS Server Configuration
if it is currently running. This option
nfs
, /usr/sbin/ntsysv, or
/sbin/chkconfig
), manually editing its configuration file
command.
and using the
/etc/exports
). Each exported file system should be on
\
135

Advertisement

Table of Contents
loading

Table of Contents