server:yum -y install nfs-utilschmod -Rf 777 /srs/trunk/objs/nginx/html/livevi /etc/exports/srs/trunk/objs/nginx/html/live 192.168.56.6(rw,sync,root_squash)systemctl restart rpcbindsystemctl enable rpcbindsystemctl start nfs-serversystemctl enable nfs-serverclient:yum -y install nfs-utilsshowmount -e 192.168.56.6mkdir /home/anosi/livemount -t nfs 192.168.56.6:/srs/trunk/objs/nginx/html/live /home/anosi/live //临时挂载,要想开机启动,加入fstab中实现vi /etc/fstab192.168.56.6:/public /mnt/public nfs defaults 0 0
学习点:
