NFS
Ubuntu
sudo apt install -y nfs-kernel-serversudo apt install -y nfs-commonsudo vim /etc/exports
/home *(rw,sync,no_root_squash)/home :共享的目录
* :指定哪些用户可以访问
* 所有可以ping同该主机的用户
192.168.1.* 指定网段,在该网段中的用户可以挂载
192.168.1.12 只有该用户能挂载
(ro,sync,no_root_squash): 权限
ro : 只读
rw : 读写
sync : 同步
no_root_squash: 不降低root用户的权限Centos
最后更新于