闲话不说了,这里笔记下Ubuntu下最简单的NFS的安装和使用流程。
CONTENTS
安装
sudo apt-get install nfs-kernel-server
配置
打开【 /etc/exports 】文件,在最后添加上
/home/share *(rw,sync,no_subtree_check,no_root_squash)
关于exports的详细说明,可以参考链接【 http://www.cnblogs.com/Charles-Zhang-Blog/archive/2013/02/05/2892879.html 】,这里就不在笔记了。
重启
sudo service nfs-kernel-server start
测试
showmount -a
嵌入式Linux使用
mount -t nfs 192.168.1.2:/home/share /mnt/nfsroot -o nolock
其中IP地址是Ubuntu的地址
发表评论