Developed by Sun, used between different systems, so its design is not related to the host system, users want to use remote files, only need mount–t NFS can take the remote files to local, like the use of local files, very convenient.
It uses a C/s architecture that uses RPC and XDR (external data representations) to exchange data between different computers.
When you start the NFS file server,/etc/rc.local automatically launches the EXPORTFS program, specifying the files or directories that can be exported, and of course you can start them yourself.
sudo exportfs–rv
Installing NFS
#check whether install Nfsrpm-qa | grep NFS
Start NFS
Service NFS Start
Configure the server
The server configuration requires editing the/etc/exports. config file, which lists the directories that the server wants to share with the outside.
Dir IP (rules)
Sample
/app * (Rw,sync,insecure,root_squash)
Client Mount:
Mount–t NFS Nfs_volume (ip:/dir) Local_dir
Mount–t NFS Ip:/app/mnt
Uninstalling NFS:
Unmount
Linux NFS Introduction