Network File System (NFS)

Introduction to NFS

Install nfs-utils package

# yum install -y nfs-utils

Enable firewall rules for NFS


This is not a complete list of firewall rules for NFS. Additional firewall services to open are rpc-bind and mountd

$ firewall-cmd --add-service=nfs
$ firewall-cmd --add-service=nfs --permamnent


Exposing NFS to the Internet is not recommended.

$ systemctl enable --now nfs-server
# mkdir -p /srv/nfs/share1
# exportfs -r


servername:/share1  /mnt/nfsexport  nfs defaults 0 0
# mount -a