About the NFS,RPC service principle, today is not introduced, direct operation steps.
########## #服务器端的配置 ##########
1.rpm-qa nfs-utils rpcbind Check for installation related software (Rpm-qa | Grep-e "Nfs-|rpcbind" forgot the name of the software, use this command to filter the contents of the quotes, grep-e =egrep)
2.yum Install Nfs-utils rpcbind-y
3./etc/init.d/rpcbind Start Rpcbind Service
4./etc/init.d/nfs Start NFS Service
5.rpcinfo-p 127.0.0.1 View Port mappings
6.netstat-lntup | grep rpcbind View service port number (LSOF-I:22)
7.chkconfig RPC on Chkconfig NFS on first starts RPC before starting NFS, because the RPC default is not set up because it starts first with NFS. It is a good idea to write startup information to/etc/rc.local (Chkconfig--level 3 NFS on means only 3-level boot)
8.chkconfig--list | Egrep "NFS, B|rpcbind" view
9.make-p/data
10.chown Nfsnobody.nfsnobody/data
11. Configure/etc/exports,vim/etc/exports, or echo "/data 192.168.25.0/24 (rw,sync,all_squash)" >>/etc/exports
12. On-premises test mount: mount-t nfs-o noatime,nodirtime,intr 192.168.25.128:/data/mnt
13.df-h to see if the mount was successful
############ #客户端的配置 ##################
The client installs Nfs,rpcbind, starts Rpcbind first, and then starts NFS.
Set up the directory, do not need to change the directory of the group, the mount operation, with the service side operation.
Set the boot-up NFS and Rpcbind services and set the boot mount.
To test
Linux Transport Koriyuki NFS server configuration