If you want to export them immediately, run exportfs from the command
line (as root).
It??™s a good idea to run the exportfs command after you change the exports file. If any
errors are in the file, exportfs identifies them for you.
Here??™s an example of the exportfs command:
# /usr/sbin/exportfs -a -v
exporting maple:/pub
exporting spruce:/pub
exporting maple:/home
exporting spruce:/home
exporting *:/mnt/win
The -a option indicates that all directories listed in /etc/exports should be exported. The
-v option says to print verbose output. In this example, the /pub and /home directories from
the local server are immediately available for mounting by those client computers that are named
(maple and spruce). The /mnt/win directory is available to all client computers.
Running the exportfs command temporarily makes your exported NFS directories available. To
have your NFS directories available on an ongoing basis (that is, every time your system reboots),
you need to set your nfs startup scripts to run at boot time. This is described in the next section.
Starting the NFS Daemons
If NFS has been disabled on your system (or is not active by default), you need to start the service.
Different Linux distributions have different ways of turning on the NFS service, as you saw in the
section ???Getting NFS??? earlier in the chapter.
Pages:
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315