NFS client installation on CentOS/Rhel 7.x

NFS client installation on CentOS/Rhel 7.x

Prerequisites : https://www.natsav.com/blog/2016/12/31/nfs-server-installation-on-centosrhel-7-x/

Now we will install these packages at the CentOS/Rhel 7.x client :

#yum install nfs-utils

Now create the NFS directory mount point as follows :

#mkdir -p /mnt/nfs_shared

Next we need to start the services as follows :

#systemctl start rpcbind
#systemctl start nfs-client.target

Now enable these services to start at boot :

#systemctl enable rpcbind
#systemctl enable nfs-client.target

Next we will mount the NFS shared content :

#mount -t nfs 192.168.0.100:/nfs_shared /mnt/nfs_shared

Permanent NFS mounting :

#vim /etc/fstab

Add the NFS share in /etc/fstab file of client machine as follows :

192.168.0.100:/nfs_shared /mnt/nfs_shared nfs defaults 0 0

Leave a Reply

Your email address will not be published. Required fields are marked *