This recipe continues where the previous recipe left off, showing you how to configure NFS on a client system.
This recipe requires a CentOS system with a working network connection. It assumes that an NFS server has been configured as explained in the previous recipe. You'll also need administrative privileges provided by logging in with the root
account.
Follow these steps to configure an NFS client:
Install the
nfs-utils
andlibnfsidmap
packages:yum install nfs-utils libnfsidmap
Create the directory which will serve as the mount point for the remote filesystem:
mkdir /mnt/nfs
Start the
rpcbind
service and register it so that it will start when the server boots:systemctl start rpcbind systemctl enable rpcbind
Mount the NFS share to the mount point:
mount -t nfs 192.168.56.100:/var/nfsshare /mnt/nfs