How To Configure NFS Server & Client in Linux || Centos 7 #NFSServer #linux



#NFS #NFSServer #networkfilesharing #linux #unix #yum #putty #linuxpermission
How To Configure NFS Server & Client in Linux
How to setup NFS server

################NFS Server Configuration###################

Install Packages
yum install nfs-utils
yum install rpcbind

1:- create a directory which have to share

2:- mkdir /test

3:- mount /test with lvm

4:- put on /etc/fstab

5:- open /etc/exports and put the share files or folders.

6:- /test *(rw,no_root_squash,async)

7:- Firewalld & Selinux should be disable.

8:- Restart autofs nfs & enable rpcbind.

################NFS Client Configuration###################
1:- Install Packages
nfs-utils
rpcbind

2:- create directory which have to aceess on client side.

2:- open /etc/auto.master and put the line

/directoryname /etc/auto.directory –timeout=3600 –ghost

3:- open /etc/auto.directoryname and put the line

* -fstype=nfs,rw,nosquid,soft,async,intr,resize=32768,wsize=32768 server’sipaddress:directoryname

4:- Firewalld & Selinux should be disable.

5:- Restart autofs nfs & enable rpcbind.

source
centos 7

Devin BARTON

I am an avid Linux lover and open source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mysteries.

13 thoughts on “How To Configure NFS Server & Client in Linux || Centos 7 #NFSServer #linux

Leave a Reply

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