Php web hosting - Chapter 27 . Running a File Servers 723
Chapter 27 . Running a File Servers 723 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 Getting NFS section earlier in the chapter. This section explores how the service is turned on in Fedora Core and other Red Hat Linux systems. In Fedora, you can use the chkconfig command to turn on the NFS service so that your files are exported and the nfsd daemons are running when your system boots. There are two startup scripts you want to turn on for the service to work properly. The NFS service exports file systems (from /etc/exports) and starts the nfsd daemon that listens for service requests. The nfslock service starts the lockd daemon, which helps allow file locking to prevent multiple simultaneous use of critical files over the network. To turn on the NFS service, type the following as root user: # chkconfig nfs on # chkconfig nfslock on The next time you start your computer, the NFS service will start automatically, and your exported directories will be available. If you want to start the service immediately, without waiting for a reboot, type the following: # /etc/init.d/nfs start # /etc/init.d/nfslock start The NFS service should now be running and ready to share directories with other computers on your network. Using NFS File Systems After a server exports a directory over the network using NFS, a client computer connects that directory to its own file system using the mount command. That s the same command used to mount file systems from local hard disks, CDs, and floppies, but with slightly different options. mount can automatically mount NFS directories added to the /etc/fstab file, just as it does with local disks. NFS directories can also be added to the /etc/fstab file in such a way that they are not automatically mounted (so you can mount them manually when you choose). With a noauto option, an NFS directory listed in /etc/ fstab is inactive until the mount command is used, after the system is up and running, to mount the file system.
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.