How To Install NFS Server For File Sharing On Linux

NFS (Network File Sharing) allows remote hosts to share files over the network and those files are mounted locally. We can install and set up the NFS server in Linux. The NFS configuration of the server is very easy in Linux.

How To Install NFS Server For File Sharing On Linux:

You can make a separate NFS server where you can share the directory to keep the data on the server from the client machine. let’s see how to install the NFS server.

Check Out: Configuration of NFS Server To Share files & Directories Over The Network

if you want to be sure that NFS RPC services enabled for RPC. So we can use this command “rpcinfo -p“. By default, NFS won’t be installed on the centos machine. You may find it installed on the RedHat machine. The latest version on RedHat 8 is NFSv4.2.

Step 1: Install the NFS server

yum install rpcbind -y

Note: you can use this package nfs-utils to get NFS installed.

rpcbind service maps Remote Protection Call(RPC) services to the port on which they listen.

Step 2: Configuration file location /etc/exports and you need to make changes in this file to allow the read, write operation the mounted data.

Check Out: How To Install WordPress 4.9.x On Redhat/CentOS 7

Step 3: you need to define the NFS server IP address in this file /etc/idmapd.conf

Domain =

Step 4: Start and enable services

systemctl enable –-now nfs-server && systemctl start rpcbind

That’s it how to optimise apache nfs configuration in linux set up nfs server linux

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment