1. Install the NFS server
[root@localhost btools]#rpm -q nfs-utils
If not, the installation package found nfs-utils .Fedora 5 in the installation package from the corresponding version of the Linux operating system installation CD
Name is nfs-utils-1.0.8.rc2-4.FC5.2.i386.rpm. The installation package below to an example: [root @ localhost btools] #rpm -ivh nfs-utils-1.0.8.rc2-4.FC5.2.i386.rpm
2. Configure the NFS server
[root@localhost btools]#vi /etc/exports
# Added to allow another computer to be mount directory:
# / Home / arm / dev_home / tmp as being another computer mount directory
# 192.168.1.134 allow another computer's IP mount
# Rw, sync, no_root_squash indicate access restrictions, a more detailed description, see the relevant manual.
/home/arm/dev_home/tmp 192.168.1.134(rw,sync,no_root_squash)
3. Start the NFS server
Use the following command to start the first NFS server.
[root@localhost btools]#/etc/init.d/nfs start
If you have started the NFS server, and re-edit the / etc / exports file, use the following command to make the directory new entrants into force: [root @ localhost btools] # / etc / init.d / nfs reload
4. Test NFS server
[root@localhost btools]#netstat -a | grep nfs
The display is an export directory listing [root @ localhost btools] #exportfs