[历史归档]本文原发布于 cstriker1407.info 个人博客,内容为历史存档,仅供参考。
发布时间:2017-03-29| 标题:Ubuntu下使用NFS|分类:编程 |标签:ubuntu·nfs
Ubuntu下使用NFS
- 安装
- 配置
- 重启
- 测试
- 嵌入式Linux使用
闲话不说了,这里笔记下Ubuntu下最简单的NFS的安装和使用流程。
安装
sudoapt-getinstallnfs-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 】,这里就不在笔记了。
重启
sudoservicenfs-kernel-server start测试
showmount-a嵌入式Linux使用
mount-tnfs192.168.1.2:/home/share /mnt/nfsroot-onolock其中IP地址是Ubuntu的地址