Overview
Today, I just want to make an nfs service, and then I can use a part of the space in the zstack hard disk as a shared storage in the local area network. The shared directory is /data, and the operation is actually quite simple.
operate
First install the relevant software packages yum install -y rpc-bind nfs-utils
, then modify the configuration /data *(rw,sync,no_root_squash)
to make the configuration file take effect and exportfs -a
restart the service. systemctl restart rpcbind
If you cannot access or mount it, it may be a problem with the firewall. Just turn off the firewall.systemctl stop firewalld
Welcome to follow Bboysoul's blog www.bboysoul.com Have Fun