- Install packages
yum install nfs-utils rpcbind
- Start the rpcbind service
systemctl start rpcbind
- Stop the firewall on both the client and the server
systemctl stop firewalld
systemctl disable firewalld
systemctl stop iptables
systemctl disable iptables
- Show the mount points on the NFS server
showmount -e e.g., showmount -e 192.168.1.10
- Create the mount point on the client ( a direcotry ) to link the folders
mkdir /mount/apps
- mount nfs file system
mount: /server/apps /mount/apps e.g., mount 192.168.1.10:/server/apps /mount/apps
- Check the mount
df -h
- Permanent mount in /etc/fstab
vi /etc/fstab
then you need to fill the entry in side
IP /server/apps /mount/apps NFS default O O e.g., 192.168.1.10:/server/apps /mount/apps nfs defaults 0 0
echo “192.168.1.10:/server/apps /mount/apps nfs defaults 0 0” >> /etc/fstab