nfs 安装(1)
apt-get install nfs-kernel-server
apt-get install portmap nfs-common
(2)
编辑/etc/exports
/home/jgyang/nfsroot *(rw,sync,no_root_squash)
(3)
修改挂载点的属性
chmod 777 /home/jgyang/rootfs
(4)
重启nfs
sudo /etc/init.d/nfs-kernel-server restart
sudo /etc/init.d/portmap restart
(5)
在本机上测试
showmount -e
mount 172.20.149.190:/home/jgyang/nfsroot /mnt
ls -l /mnt
mount nfs目录的方法:
mount -t nfs hostname(orIP):/directory /mount/point
阅读(815) | 评论(0) | 转发(0) |