CentOS NFS配置

1:
    vim /etc/exports
    
    /tftp *(rw,sync,no_root_squash)
    /home 192.168.1.*(rw,sync,no_root_squash)
    
    注释:
    /tftp           :    共享路径
    *或192.168.1.* :    允许访问的对象,*代表不限制
    rw           :    读写控制
    sync           :    客户端修改同步
    no_root_squash :    以root登陆享有的权限


2:
    /etc/init.d/nfs restart
  //最好关闭防火墙

3: 测试挂载
  mount -t nfs 192.168.1.117:/home/nfsroot /nfstest

4:   卸载
  umount /nfstest





  
 
原文地址:https://www.cnblogs.com/wslblog/p/4133192.html