1. NFS (Network File system, RPC protocol based)
2, NFS server-side installation configuration
Installation Server: Yum install nfs-utils rpcbind-y
installation client: Yum Install Nfs-utils-y
Edit the configuration file: Vim/etc/exports
join:/home/nfsdir ***.***.***.*** (rw,sync,all_squash,anonuid=1000,anongid= +)
Create directory: Mkdir/home/nfsdir
Change permissions: chmod 777/home/nfsdir
Start Services: Service NFS Start
set to boot Nfs:systemctl enable NFS
set to boot rpcbind:systemctl enable Rpcbind
/etc/exports Explanation of parameters in the configuration file:
/home/nfsdir ***.***.***.*** (rw,sync,all_squash,anonuid=999,anongid=999)
Mount: Mount-t NFS ***.***.***.***:/home/nfsdir/mnt
When creating a directory or file, it is based on Anonuid and Anongid in the configuration file:
3, Exportfs command (between the server and the client to connect too many machines, when restarting the service, may be used)
Freq used:EXPORTFS-AVF
You can re-read the configuration file
The No_root_squash is used in the compounding file.
4. NFS Client Issues
Operation:
NFS-related, NFS server-side installation configuration, Exportfs command, NFS client issues