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:
- Use showmount to show NFS shares.
- Use exportfs to show NFS shares.
- Use master export file /var/lib/nfs/etab to show NFS shares.
- Use mount to list NFS mount points.
- Use nfsstat to list NFS mount points.
- Use /proc/mounts to list NFS mount points.