linux下NFS的配置
nfs 安装(1)
apt-get install nfs-kernel-server
apt-get install portmap nfs-common
(2)
编辑/etc/exports
/home/username/nfsroot *(rw,sync,no_root_squash)
(3)
修改挂载点的属性
chmod 777 /home/username/nfsroot
(4)
重启nfs
sudo /etc/init.d/nfs-kernel-server restart
sudo /etc/init.d/portmap restart
(5)
在本机上测试
showmount -e
mount 192.168.1.2:/home/username/nfsroot /mnt
或者
mount 192.168.1.2:/home/username/nfsroot /home/clientUserName/nfsclient