1. server:
    2. yum -y install nfs-utils
    3. chmod -Rf 777 /srs/trunk/objs/nginx/html/live
    4. vi /etc/exports
    5. /srs/trunk/objs/nginx/html/live 192.168.56.6(rw,sync,root_squash)
    6. systemctl restart rpcbind
    7. systemctl enable rpcbind
    8. systemctl start nfs-server
    9. systemctl enable nfs-server
    10. client:
    11. yum -y install nfs-utils
    12. showmount -e 192.168.56.6
    13. mkdir /home/anosi/live
    14. mount -t nfs 192.168.56.6:/srs/trunk/objs/nginx/html/live /home/anosi/live //临时挂载,要想开机启动,加入fstab中实现
    15. vi /etc/fstab
    16. 192.168.56.6:/public /mnt/public nfs defaults 0 0


    学习点: