yum install -y nfs-utils
vi /etc/exports
要共享的目录
/root
:wq
systemctl enable nfs --now
showmunt -e 127.0.0.1
systemctl disable firewalld --now
另外一台机器
yum install -y nfs-utils
systemctl disable firewalld --now
mount -e 192.168.1.x:/root /mnt
df -Th