#客户端NFS client end
yum install nfs-utils
#Now create the NFS directory mount point as follows:
mkdir -p /mnt/nfs/home
mkdir -p /mnt/nfs/var/nfsshare
#Start the services and add them to boot menu.
systemctl enable rpcbind
systemctl enable nfs-server
systemctl enable nfs-lock
systemctl enable nfs-idmap
systemctl start rpcbind
systemctl start nfs-server
systemctl start nfs-lock
systemctl start nfs-idmap
Next we will mount the NFS shared content in the client machine as shown below:
mount -t nfs 10.0.0.10:/u02/liyangjie /mnt/nfs/home/
#设置开机挂载
# Permanent NFS mounting
We need to mount the NFS share at client end permanent that it must be mounted even after reboot. So we need to add the NFS-share in /etc/fstab file of client machine as follows:
nano /etc/fstab
Add the entries like this: