Red hat linux

Setting Up an NFS Server and Client on CentOS 7

I’m using two CentOS systems here:

NFS Server: server.example.com, IP address: 192.168.1.100
NFS Client: client.example.com, IP address: 192.168.1.101

Configure the Firewall

Installing NFS and enable and start the nfs server service.(Client / Server)

Exporting Directories on the Server

Now we must modify /etc/exports where we “export” our NFS shares.

Mounting the NFS Shares on the Client
client:
First we create the directories where we want to mount the NFS shares

Afterwards, we can mount them as follows:

Open /etc/fstab and append the following lines:

Leave a Reply

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