Simple tutorial (very basic) on how to install and configure NFS for sharing a file system between two hosts. This tutorial does not go into detail about the many capabilities of NFS but, rather, is a proof of concept exercise.
Process
To configure NFS for file system sharing between hosts, assume that we have two hosts
HOSTA
and HOSTB
. Note that this process was tested on a CentOS system, but can likely
be utilized on other operating systems with the correct substitution of commands.
On HOSTA
:
On HOSTB
:
At this point, you should have a fully-functioning NFS share between the two hosts. To test, create a file on one host, and inspect that the file is also visible on the second host.