NFS client features are in the base operating
system. To turn on the nfs service, type the following:
# service nfs start
# chkconfig nfs on
Debian??”To act as an NFS client, the nfs-common and portmap packages are required;
for an NFS server, the nfs-kernel-server package must be added. The following apt-get
command line (if you are connected to the Internet) installs them all. Then, after you add
an exported file system to the /etc/exports file (as described later), you can start the
nfs-common and nfs-kernel-server scripts, as shown here:
# apt-get install nfs-common portmap nfs-kernel-server
# /etc/init.d/nfs-kernel-server start
# /etc/init.d/nfs-common start
Gentoo??”With Gentoo, NFS file system and NFS server support must be configured into
the kernel to use NFS server features. Installing the nfs-utils package (emerge nfs-utils)
should get the required packages. To start the service, run rc-update and start the
service immediately:
# emerge nfs-utils
# rc-update add portmap default
# rc-update add nfs default
# /etc/init.d/nfs start
The commands (mount, exportfs, and so on) and files (/etc/exports, /etc/fstab, and so on)
for actually configuring NFS are the same on every Linux system I??™ve encountered. So once you have
NFS installed and running, just follow the instructions in this chapter to start using NFS.
Pages:
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307