718 Part V . (Web design programs) Running Servers Getting NFS

718 Part V . Running Servers Getting NFS While nearly every Linux system supports NFS client and server features, NFS is not always installed by default. You ll need different packages for different Linux systems to install NFS. Here are some examples: . Fedora Core and other Red Hat Linux systems You need to install the nfsutils package to use Fedora as an NFS server. There is also a graphical NFS Configuration tool that requires you to install the system-config-nfs package. 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. Sharing NFS File Systems To share an NFS file system from your Linux system, you need to export it from the server system. Exporting is done in Linux by adding entries into the /etc/exports file. Each entry identifies a directory in your local file system that you want to share with other computers. The entry also identifies the other computers that can share the resource (or opens it to all computers) and includes other options that reflect permissions associated with the directory.
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.

Leave a Reply