centos build nfs server

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 -arestart the service. systemctl restart rpcbindIf 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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325696601&siteId=291194637