服务端安装 1 2 3 4 5 6 7 8 9 #安装 yum -y install nfs-utils rpcbind systemctl enable nfs-server #配置 vim /etc/exports /home/wwwroot 172.25.8.4(rw,sync,no_root_squash,no_subtree_check) 192.168.236.155(rw,async,root_squash) #启动 systemctl restart rpcbind systemctl start nfs-server 客户端安装 1 2 3 4 5 6 #安装 yum -y install nfs-utils rpcbind #挂载 vim /etc/fstab 192.168.236.1:/home/wwwroot /home/wwwroot nfs defaults,_netdev 0 0 mount -a