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
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 /shareStep 3 then we will go exports configuration file and write client ip address
[root@localhost ~]# vim /etc/exports /share 192.168.56.101(rw,sync) ~ ~ ~ ~ ~ ~ ~ :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 -aStep 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 192.168.56.102:/share /root/Desktop/vishnuStep 6 after mounting we will check mounting below commands
[root@localhost ~]# df -hStep 7 if any body put data in /share folder we do refresh and look below commands
[root@localhost vishnu]# exportfs -rif you have any problems in this tutorial .so comment here i will solve your problems
Thank you
Writer Vishnu sharma
