NFS stands for Network File-System, which enables file sharing between different machines and different systems through the network. Through NFS, you can access remote shared directories, just like accessing local disks. NFS is just a file system without transmission function. It is implemented based on the RPC (Remote Procedure Call) protocol and adopts the C/S architecture.
NFS on ubuntu is very useful, for example, you can share the same file on different servers, you can also increase the storage space of the service, and so on.
Since it is a network file system, nfs must use an actual physical space as the server, and other servers that mount this space are called clients.
sudo apt-get install nfs-kernel-server #Install NFS server side
sudo apt-get install nfs-common #Install NFS client
sudo vim /etc/exports
Add a line, for example, the mount point is /mnt/tem
/mnt/tem *(rw,sync,no_root_squash,no_subtree_check)
sudo /etc/init.d/nfs-kernel-server restart
sudo /etc/init.d/nfs-kernel-server status
sudo apt-get install nfs-common #Install NFS client
sudo mount -t nfs $SERVER_IP:/mnt/tem /mnt/tem
Recommended Posts