Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleInstall and export NFS
collapsetrue
# Install the below package for NFS server on CentOS
$ sudo yum install -y nfs-utils

# Edit /etc/exports by inserting the exported directory (es. nfsshare), the IPs of the clients (es. 192.168.100.0/24) and how to access the exported directory
/<path>/<exported_dir>     X.X.X.0/24<IP_client1>(ro,sync,no_root_squash,no_all_squash)
/<path>/<exported_dir>     <IP_client2>(ro,sync,no_root_squash,no_all_squash)

# Update the service
$ sudo exportfs -rav

...