栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

ubuntu nfs 服务器搭建

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ubuntu nfs 服务器搭建

参考资料:朱老师物联网大讲堂嵌入式linux一期课程,环境搭建相关资料(微信搜索“朱老师物联网大讲堂”,关注公众号可下载相关资料)

ubuntu nfs 服务器搭建

前言一、安装nfs二、配置/etc/exports三、 启用四、挂载测试

前言 一、安装nfs
sudo apt-get install nfs-kernel-server
sudo apt-get install nfs-common
二、配置/etc/exports
sudo vi /etc/exports 

追加对应文件夹与相关参数:
/root/porting_x210/rootfs *(rw,sync,no_root_squash,no_subtree_check)

对挂载文件夹权限进行修改

chmod 777 -R /root/rootfs


sudo showmount -e//Show the NFS server's export list
sudo exportfs -r// Reexport  all  directories,
sudo showmount -e
三、 启用
sudo /etc/init.d/nfs-kernel-server restart
四、挂载测试
//将目标localhost:/root/rootfs挂载到本机/mnt
//此时/mnt中将能操作localhost:/root/rootfs中的内容
mount -t nfs -o nolock localhost:/root/rootfs /mnt

卸载挂载点
umount /mnt
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/747419.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号