0% found this document useful (0 votes)
13 views

Nfs Server

The document provides steps to configure an NFS server and client on Linux, including installing NFS packages, configuring the /etc/exports file, starting the NFS server service, enabling firewall rules, exporting shares, and mounting shares on the client either temporarily or permanently via /etc/fstab.

Uploaded by

singhprateek702
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Nfs Server

The document provides steps to configure an NFS server and client on Linux, including installing NFS packages, configuring the /etc/exports file, starting the NFS server service, enabling firewall rules, exporting shares, and mounting shares on the client either temporarily or permanently via /etc/fstab.

Uploaded by

singhprateek702
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

NFS Server

Step-1

# rpm -qa nfs*

# mkdir /read
# mkdir /write
# chmod 777 /write
Step-2

# vim /etc/exports
/read *(ro,sync)
/write *(rw,async)

:wq

# systemctl restart nfs-server


# systtemctl enable nfs-server
# firewall-cmd --permanent --add-service=nfs
and reload as well

# exportfs -v

# exportfs -r
# showmount -e
# showmount -e 192.168.0.x

NFS Client Configuration:-


To access nfs shared folder
create mount point and then mount
# mount 192.168.0.x:/read /ro
# mount 192.168.0.x:/write /rw
# df -TH (to check)
to mount permanent
# vim /etc/fstab
192.168.0.x:/read /ro nfs defaults 00
192.168.0.x:/write /rw nfs defaults 00
:wq
# mount -a

You might also like