This article will guide you on how you can setup NFS server and client in Debian 10 system. Also, you will learn steps to install the NFS server and client, configure NFS shared directories, and mount/unmount the NFS shares on the client system.
Configuring a system to share files and directories using NFS is straightforward.
NFS uses port 2049. NFSv3 and NFSv2 use the portmapper service on TCP or UDP port 111.
Every filesystem being exported to remote users via NFS, as well as the access rights relating to those filesystems, is located in the /etc/exports file.
To check #NFS mount #Linux:
1. Use showmount to show NFS shares.
2. Use exportfs to show NFS shares.
3. Use master export file /var/lib/nfs/etab to show NFS shares.
4. Use mount to list NFS mount points.
5. Use nfsstat to list NFS mount points.
6. Use /proc/mounts to list NFS mount points.