安装NFS和RPC软件
[root@ 777 ~]# yum -y install epel-release
[root@ 777 ~]# yum -y install nfs-utils rpcbind
编辑 NFS 配置文件
[root@ 777 ~]# vim /etc/exports
/home/shared 192.168.124.0/24(rw,sync)
启动 NFS 有先后顺序之分
[root@ 777 ~]# systemctl start rpcbind.service
[root@ 777 ~]# systemctl start nfs.service
挂载
[root@ 777 ~]# mount -t nfs 192.168.124.22:/home/shared/ /mnt/