Regardless of the purpose of a particular server, it needs to store data somewhere. Using network storage allows data to be shared among different users or servers without having to duplicate it and waste storage. In this lab, you’ll be able to practice setting up an NFS server and client.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Set up the NFS server to export the required directory.
First, we need to install the
nfs-utils
andexportfs
packages. Then we can set the mount point up in/etc/exports
. After exporting the filesystem, we can start thenfs-server
service, and this objective is complete!- Set up the NFS client to mount the required directory on /var/www/html and test.
After installing the
nfs-utils
package, we need to mount the export on/var/www/html
. Once that is complete, we can start the Apache service. Finally, open a browser to the client-server’s public IP and check out the awesome page that you enabled!