Related packages:
portmap-4.0-65.2.2.1nfs-utils-1.0.9-40.e15.i386.rpm
Related daemons:
RPC.NFSD//Management client can log in to server RPC.MOUNTD//user authentication Portmap//port mapping work
To
start NFS:
Service Portmap startservice NFS Start
configuration file/etc/exports:
Example 1: /tmp1 192.168.0.4/24 (RO) localhost (rw) * (RO) //Shared directory Host (permissions) Note: host expression: 192.168.0.3 or 192.168.0.0/24 or 192.168.0.0/255.255.255.0 permission expression: RO (read-only) RW (read-write) sync (synchronous)
To
view NFS Server information:
showmount-e 192.168.0.3 //View all shared directories of the 192.168.0.3 server
to mount to the client:
mount-t NFS 192.168.0.3:/exports/rhe1/mnt/nfs //mount the/exports/rhe1 shared directory under the NFS server to the local/mnt/nfs directory
Client boot automatically mounts NFS:
192.168.0.3:/exports/rhe1/mnt/nfs NFS Default 0 0//Add this line to the/etc/fstab file mount-a//Then reload fstab so that it takes effect /c2>
Troubleshooting
NFS:
in client execution: example 2:rpcinfo-u 192.168.1.102 portmap//IP addresses are NFS server addresses Rpcinfo-u 192.168.1.102 NFS Rpcinfo-u 192.168.1.102 Mountd Example 3:nfsstat-c
server-Side Execution: Example 4:nfsstat-s
General Steps for NFS Troubleshooting: 1. Check that NFS client and server communication is normal (ping) 2, check if NFS service is functioning correctly on NFS Servers 3, verify that the/etc/exports file on the NFS server has syntax error 4, Check that client Services for NFS are healthy 5, verify that the/etc/fstab is configured correctly
Server for NFS configuration (file sharing between Unix/linux operating systems)--linux