How To Configure Nfs Server In Rhel 7?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Install the NFS Server packages:
# yum install nfs-utils
2. Create a directory to serve as the NFS mount point:
# mkdir /nfsshare
3. Set the permissions for the directory:
# chmod -R 777 /nfsshare
4. Enable NFS server in the /etc/exports configuration file:
# vi /etc/exports
/nfsshare 10.0.0.0/255.255.255.0(rw,sync,no_root_squash,no_all_squash)
5. Start the NFS services:
# systemctl start nfs-server
6. Enable the NFS services to start at boot time:
# systemctl enable nfs-server
7. You can verify the NFS export list using the showmount command:
# showmount -e
8. Create a mount point on the client machine and mount the NFS share:
# mount 10.0.0.0:/nfsshare /mnt/nfsshare