How to configure NFS (Network File System )server in linux redhat

hello guys today we will configure NFS server in Linux redhat.if we configure  NFS Server in our Linux machine we can share easily  data each other easily. actually NFS server in share folder take real  space on server but all connected system in show visually. Linux server in NFS server is a very batter source of data sharing. so if you want to configure NFS server in your system so before configure YUM server in your system. yum Server is a very important in Linux we can install any package easily through YUM server. if you want to know how to configure yum server in our linux machine so click link and look

NFS server   here i agree you install yum server in your linux machine .then we start next

Step 1 we will install NFS and PORTMAP package below commands

[root@localhost ~]# yum install nfs*
[root@localhost ~]# yum install portmap*

Step 2 then we will make share directory  in (/)slash  

[root@localhost ~]# mkdir /share

Step 3 then we will go exports configuration file and write client ip address 

[root@localhost ~]# vim /etc/exports
:wq(note-here we write which client ip address we want share with data with NFS Server)

Step 4 then we will restart related services below commands

[root@localhost ~]# service portmap restart
Stopping portmap:                                          [  OK  ]
Starting portmap:                                          [  OK  ]
[root@localhost ~]# service portmap restart
Stopping portmap:                                          [  OK  ]
Starting portmap:

Step 5 now we will off our machine firewall selinux and on export service 

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0
[root@localhost ~]# exportfs -a

Step 6 now server work is finish.then we will go client side and and mount /share folder in our client machine .we will make new directory for mounting /share folder we mount below commands

[root@localhost ~]# mount -t nfs  /root/Desktop/vishnu

Step 6 after mounting we will check mounting below commands 

[root@localhost ~]# df -h

 Step 7 if any body put data in /share folder we do refresh and look below commands

[root@localhost vishnu]# exportfs -r

 if you have any problems in this tutorial .so comment here i will solve your problems

Thank you

Writer Vishnu sharma


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s