Health

Header Ads

What is NFS Server? And how to configure it in RedHat Linux!

 Friends, in this article today we learn how to configure NFS (Network File System) Server in Linux Machine! Before that we know what an NFS Server is and why it needs to be configured in a Linux machine! Any Folder or Directory can be shared remotely to other Linux machine through NFS server. The Folder or Directory we share through NFS is only shown on remote machine and takes on Real spaces server!



nfsserver

NFS Server Configuration

For the configuration of NFS Server, the first thing to do is to install its package. To install any type of package in Linux, configuration of Yum Server is required. This is a simple configuration if you want to know how to configure Yum Server. it is then Click to go to the Link

Server  Machine process

So I assume that you have configured Yum Server in your Linux machine.

First of all, we install the NFS Package with the following Commands

[root@localhost ~]# yum install nfs* -y

Now we have to install Partmap package for this by following command

[root@localhost ~]# yum install portmap* -y

Now we have to make the Folder which is to be shared, it is creating a Share Name Folder which will be shared through NFS Server.

[root@localhost ~]# mkdir share

Now we have to go to the Exports File and write the IP address of the Clint / machine with which to share Folder

[root@localhost ~]# vim /etc/exports

/share 192.168.56.101(rw,sync)

: wq (note- Here we have to write the IP address of the Clint or System with which we want to share Directory or Folder from NFS Server)

Now we have to restart the service of NFS Server with the following Commands

[root@localhost ~]# service nfs restart

Now to restart the service partmap

[root@localhost ~]# service portmap restart

Now we have to disable Firewall and Selinux

[root@localhost ~]# iptables -F

[root@localhost ~]# setenforce 0

Client Machine process

Now we have to mount the Folder or Directory shared by the NFS Server in the Client Side. It is worth noting that we should check the Client Side Machine by Pnig the server so that we can confirm that this server Can communicate with or not

The following Commands are used for Ping

[root@localhost ~]# ping 192.168.43.60

PING 192.168.43.60 (192.168.43.60) 56(84) bytes of data.

64 bytes from 192.168.43.60: icmp_seq=1 ttl=64 time=1.84 ms

--- 192.168.43.60 ping statistics ---

11 packets transmitted, 11 received, 0% packet loss, time 10016ms

rtt min/avg/max/mdev = 0.324/0.637/1.849/0.395 ms

When the client machine is pinging from the server machine means that both machines can communicate with each other.

Now we have to mount the Folder shared by the server on the Clint machine as follows

[root@localhost ~]# mount -t nfs 192.168.60:/root/share /root/Desktop/ayush

After mounting it, whenever any data is kept in this folder, it is shown on the remote machine.

Friends, if you are engaged in Hindi IT solution by Digi Trips with knowledge and knowledge, then share it like and follow Hindi IT.com, after following Hindi IT Solution.com whenever you will publish a post or tutorial with knowledge. You will get Notification on your email. On this website you have a lot of posts related to Linux, which is in simple Hindi language, from which you can complete Linux, if you have any Trick or Tutorial published by Hindi IT Solution. So Piratical No Problem comes in process Comments were to be used to solve your problem by Hindi IT Solution

Post a Comment

0 Comments