How To Nfs Share In Linux?
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 on the Linux system from which you will share data:
# yum install nfs–utils nfs–utils–lib
2. Configure NFS sharing directory. Create a directory for the NFS share and set its permissions, for example:
# mkdir /data/share # chmod –R 755 /data/share
3. Add the shared directory to the /etc/exports configuration file with read–write access for a specific host, for example:
/data/share 192.168.1.102(rw,sync,no_root_squash,no_all_squash)
4. Start the NFS service:
# systemctl start nfs–server
5. Export the NFS shared directory:
# exportfs –a
6. Mount the NFS shared directory on the client system by running the following command:
# mount –t nfs 192.168.1.102:/data/share /mnt