)
yum install nfs-utils -ysystemctl start nfs#创建nfs共享目录mkdir /data/volume_test/v{1,2,3,4,5,6,7,8,9,10} -p#配置nfs共享宿主机上的/data/volume_test/v1..v10目录vim /etc/exports输入/data/volume_test/v1 *(rw,no_root_squash)/data/volume_test/v2 *(rw,no_root_squash)/data/volume_test/v3 *(rw,no_root_squash)/data/volume_test/v4 *(rw,no_root_squash)/data/volume_test/v5 *(rw,no_root_squash)/data/volume_test/v6 *(rw,no_root_squash)/data/volume_test/v7 *(rw,no_root_squash)/data/volume_test/v8 *(rw,no_root_squash)/data/volume_test/v9 *(rw,no_root_squash)/data/volume_test/v10 *(rw,no_root_squash)保存退出执行#重新加载配置使配置成效exportfs -arvsystemctl start nfssystemctl enable nfssystemctl status nfs