The establishment of an NFS Network File System is dependent on the RPC service. RPC acts as a proxy for other services to establish network connections and implement network transmission, working on TCP/UDP port 111, RPC is provided by portmap. Generally, it is installed and started by default # service portmap status # rpcinfo-p X. x. x. X View X. x. x. x's open rpc service rpc. mountd is used to verify the client information id and subnet. Rpc. the nfs-Based Disk Quota function of quotad nfslock (rpc. statd, lockd) nfs read/write locks. The above services use random ports to listen to TCP/2049 and UDP/2049 ports (nfsd) enable nfs # service nfs start # chkconfig nfs on nfs configuration file/etc/exports/XXXX shared directory name 172.16.x.x (ro) 192.168.O.O (rw) shared directory permission mode: ro, rw, async, sync, root_squash, no_root_squash, all_squash exportfs-r export all shared directories-u cancel one or more shared directories exportfs-r exportfs-u 192.168.0.0/24: /vhosts showmount-e X. x. x. X view the shared directory showmount-a X on a host. x. x. X It shows which users mount the nfs shared directory on the server. The permission is determined by the user ID. If you want to have the permission on the shared directory, you must create a user with the same id as the owner of the server shared directory on the client and switch to the user to operate the files in the shared directory.