NFS命令

编辑

sudo gedit /etc/exports

加入

/home/lbl/targetfs *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)

重启服务

sudo service portmap restart 
sudo service nfs-kernel-server restart

显示mount项目

showmount -e
本机mount
sudo mount -t nfs localhost:/home/lbl/targetfs /mnt/nfs/

 

posted @ 2015-06-11 14:27  木木薯薯  阅读(347)  评论(0)    收藏  举报